common

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeleteTagAnnotation = "kuadrant.io/delete"
)

Variables

This section is empty.

Functions

func ConditionMarshal

func ConditionMarshal(conditions []metav1.Condition) ([]byte, error)

ConditionMarshal marshals the set of conditions as a JSON array, sorted by condition type.

func CopyConditions

func CopyConditions(conditions []metav1.Condition) []metav1.Condition

CopyConditions copies the set of conditions

func DecodeFile

func DecodeFile(ctx context.Context, fileData []byte, scheme *runtime.Scheme, cb DecodeCallback) error

func FetchEnv

func FetchEnv(key string, def string) string

func FindAuthorinoStatusCondition

func FindAuthorinoStatusCondition(conditions []authorinov1beta1.Condition, conditionType string) *authorinov1beta1.Condition

func FindDeploymentStatusCondition

func FindDeploymentStatusCondition(conditions []appsv1.DeploymentCondition, conditionType string) *appsv1.DeploymentCondition

func IsObjectTaggedToDelete

func IsObjectTaggedToDelete(obj client.Object) bool

func IsOwnedBy

func IsOwnedBy(owned, owner client.Object) bool

func KuadrantControllerImage

func KuadrantControllerImage(ctx context.Context, scheme *runtime.Scheme) (string, error)

func ObjectInfo

func ObjectInfo(obj client.Object) string

func ObjectKeyListDifference

func ObjectKeyListDifference(a, b []client.ObjectKey) []client.ObjectKey

ObjectKeyListDifference computest a - b

func TagObjectToDelete

func TagObjectToDelete(obj client.Object)

Types

type DecodeCallback

type DecodeCallback = func(runtime.Object) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL