Documentation ¶
Index ¶
- Constants
- func CmpResourceList(a, b *v1.ResourceList) bool
- func CmpResources(a, b *v1.ResourceRequirements) bool
- func ConditionMarshal(conditions []metav1.Condition) ([]byte, error)
- func CopyConditions(conditions []metav1.Condition) []metav1.Condition
- 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 FindDeploymentStatusCondition(conditions []appsv1.DeploymentCondition, ...) *appsv1.DeploymentCondition
- func FindEnvVar(a []v1.EnvVar, x string) int
- func IsObjectTaggedToDelete(obj KubernetesObject) bool
- func IsStatusConditionTrue(conditions []appsv1.DeploymentCondition, ...) 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 ConditionMarshal ¶ added in v0.8.0
ConditionMarshal marshals the set of conditions as a JSON array, sorted by condition type.
func CopyConditions ¶ added in v0.8.0
CopyConditions copies the set of conditions
func EnsureObjectMeta ¶
func EnsureObjectMeta(existing, desired *metav1.ObjectMeta) bool
EnsureObjectMeta ensure Labels, Annotations
func EnsureString ¶
func EnvVarFromSecretKey ¶ added in v0.5.1
func FindDeploymentStatusCondition ¶ added in v0.7.1
func FindDeploymentStatusCondition(conditions []appsv1.DeploymentCondition, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition
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 IsStatusConditionTrue ¶ added in v0.7.1
func IsStatusConditionTrue(conditions []appsv1.DeploymentCondition, condType appsv1.DeploymentConditionType) 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.