comparison

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package comparison contains object comparison functions.

Index

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

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

func StringsContains(a []string, x string) bool

StringsContains contains tells whether a contains x.

Types

This section is empty.

Jump to

Keyboard shortcuts

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