Documentation ¶
Index ¶
- func ClearObjectHash(obj runtime.Object)
- func GetObjectHash(obj runtime.Object) string
- func GetTargetPort(port corev1.ServicePort, pod corev1.Pod) int
- func HashObject(obj runtime.Object) string
- func MergeMaps(base map[string]string, second map[string]string) map[string]string
- func SetObjectHash(obj runtime.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearObjectHash ¶
Takes a Kubernetes object and removes the annotation with its hash.
func GetObjectHash ¶
Takes a Kubernetes object and returns the hash in its annotations as a string.
func GetTargetPort ¶
func GetTargetPort(port corev1.ServicePort, pod corev1.Pod) int
Return an integer target port from a ServicePort for a pod.
func HashObject ¶
Return a SHA1 hash of a Kubernetes object
func SetObjectHash ¶
Takes a Kubernetes object and adds an annotation with its hash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.