Documentation ¶
Index ¶
- func CompareDeploymentMD5Hash(hash string, dep *apps.Deployment) bool
- func GenerateMD5DeploymentSpec(spec *apps.DeploymentSpec) (string, error)
- func IsUpToDateDeployment(kd *kanaryv1alpha1.KanaryStatefulset, dep *apps.Deployment) bool
- func SetMD5DeploymentSpecAnnotation(kd *kanaryv1alpha1.KanaryStatefulset, dep *apps.Deployment) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareDeploymentMD5Hash ¶
func CompareDeploymentMD5Hash(hash string, dep *apps.Deployment) bool
CompareDeploymentMD5Hash used to compare a md5 hash with the one setted in Deployment annotation
func GenerateMD5DeploymentSpec ¶
func GenerateMD5DeploymentSpec(spec *apps.DeploymentSpec) (string, error)
GenerateMD5DeploymentSpec used to generate the DeploymentSpec MD5 hash
func IsUpToDateDeployment ¶
func IsUpToDateDeployment(kd *kanaryv1alpha1.KanaryStatefulset, dep *apps.Deployment) bool
IsUpToDateDeployment returns true if the Deployment is up to date with the KanaryStatefulset deployment template.
func SetMD5DeploymentSpecAnnotation ¶
func SetMD5DeploymentSpecAnnotation(kd *kanaryv1alpha1.KanaryStatefulset, dep *apps.Deployment) (string, error)
SetMD5DeploymentSpecAnnotation used to set the md5 annotation key/value from the KanaryDeployement.Spec.Template.Spec
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.