Documentation ¶
Overview ¶
Package comparison contains object comparison functions.
Index ¶
- func ComparePodTemplateSpecMD5Hash(hash string, rs *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet) bool
- func GenerateHashFromEDSResourceNodeAnnotation(edsNamespace, edsName string, nodeAnnotations map[string]string) string
- func GenerateMD5PodTemplateSpec(tpl *corev1.PodTemplateSpec) (string, error)
- func IsReplicaSetUpToDate(rs *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet, ...) bool
- func SetMD5PodTemplateSpecAnnotation(rs *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet, ...) (string, error)
- func StringsContains(a []string, x string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePodTemplateSpecMD5Hash ¶
func ComparePodTemplateSpecMD5Hash(hash string, rs *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet) bool
ComparePodTemplateSpecMD5Hash used to compare a md5 hash with the one setted in Deployment annotation.
func GenerateHashFromEDSResourceNodeAnnotation ¶
func GenerateHashFromEDSResourceNodeAnnotation(edsNamespace, edsName string, nodeAnnotations map[string]string) string
GenerateHashFromEDSResourceNodeAnnotation is used to generate the MD5 hash from EDS Node annotations that allow a user to overwrites the containers resources specification for a specific Node.
func GenerateMD5PodTemplateSpec ¶
func GenerateMD5PodTemplateSpec(tpl *corev1.PodTemplateSpec) (string, error)
GenerateMD5PodTemplateSpec used to generate the DeploymentSpec MD5 hash.
func IsReplicaSetUpToDate ¶
func IsReplicaSetUpToDate(rs *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet, daemonset *datadoghqv1alpha1.ExtendedDaemonSet) bool
IsReplicaSetUpToDate returns true if the ExtendedDaemonSetReplicaSet is up to date with the ExtendedDaemonSet pod template.
func SetMD5PodTemplateSpecAnnotation ¶
func SetMD5PodTemplateSpecAnnotation(rs *datadoghqv1alpha1.ExtendedDaemonSetReplicaSet, daemonset *datadoghqv1alpha1.ExtendedDaemonSet) (string, error)
SetMD5PodTemplateSpecAnnotation used to set the md5 annotation key/value from the ExtendedDaemonSetReplicaSet.Spec.Template.
func StringsContains ¶
StringsContains contains tells whether a contains x.
Types ¶
This section is empty.