Documentation
¶
Index ¶
- func ComputeHash(obj interface{}) string
- func DeepHashObject(hasher hash.Hash, objectToWrite interface{})
- func GetContainerImagesFromJob(job *batchv1.Job) (kube.ContainerImages, error)
- func GetContainerImagesFromPodSpec(spec corev1.PodSpec) kube.ContainerImages
- func GetImmediateOwnerReference(pod *corev1.Pod) kube.Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶
func ComputeHash(obj interface{}) string
ComputeHash returns a hash value calculated from pod spec. The hash will be safe encoded to avoid bad words.
func DeepHashObject ¶
DeepHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes.
func GetContainerImagesFromJob ¶
func GetContainerImagesFromJob(job *batchv1.Job) (kube.ContainerImages, error)
func GetContainerImagesFromPodSpec ¶
func GetContainerImagesFromPodSpec(spec corev1.PodSpec) kube.ContainerImages
func GetImmediateOwnerReference ¶
GetImmediateOwnerReference returns the immediate owner of the specified Pod. For example, for a Pod controlled by a Deployment it will return the active ReplicaSet object, whereas for an unmanaged Pod the immediate owner is the Pod itself.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.