Documentation
¶
Index ¶
- Constants
- func CmpResourceList(a, b *v1.ResourceList) bool
- func CmpResources(a, b *v1.ResourceRequirements) bool
- func EnsureObjectMeta(existing, desired *metav1.ObjectMeta) bool
- func EnsureString(modified *bool, existing *string, required string)
- func EnvVarFromSecretKey(name string, secretName string, secretKey string) v1.EnvVar
- func EnvVarFromValue(name string, value string) v1.EnvVar
- func FindEnvVar(a []v1.EnvVar, x string) int
- func IsObjectTaggedToDelete(obj KubernetesObject) bool
- func MergeMapStringString(modified *bool, existing *map[string]string, desired map[string]string)
- func ObjectInfo(obj KubernetesObject) string
- func SecretStringDataFromData(secret v1.Secret) map[string]string
- func TagObjectToDelete(obj KubernetesObject)
- type KubernetesObject
Constants ¶
View Source
const (
// ApicastSecretLabel is the label that secrets need to have in order to reconcile changes
ApicastSecretLabel = "apicast.apps.3scale.net/watched-by=apicast"
)
View Source
const (
DeleteTagAnnotation = "apps.3scale.net/delete"
)
Variables ¶
This section is empty.
Functions ¶
func CmpResourceList ¶ added in v0.4.0
func CmpResourceList(a, b *v1.ResourceList) bool
CmpResourceList returns true if the resourceList a is equal to b,
func CmpResources ¶ added in v0.4.0
func CmpResources(a, b *v1.ResourceRequirements) bool
CmpResources returns true if the resource requirements a is equal to b,
func EnsureObjectMeta ¶
func EnsureObjectMeta(existing, desired *metav1.ObjectMeta) bool
EnsureObjectMeta ensure Labels, Annotations
func EnsureString ¶
func EnvVarFromSecretKey ¶ added in v0.5.1
func FindEnvVar ¶
FindEnvVar returns the smallest index i at which x == a[i], or -1 if there is no such index.
func IsObjectTaggedToDelete ¶ added in v0.3.0
func IsObjectTaggedToDelete(obj KubernetesObject) bool
func MergeMapStringString ¶
func ObjectInfo ¶
func ObjectInfo(obj KubernetesObject) string
func TagObjectToDelete ¶ added in v0.3.0
func TagObjectToDelete(obj KubernetesObject)
Types ¶
Click to show internal directories.
Click to hide internal directories.