Documentation
¶
Index ¶
- func ComputeHash(spec corev1.PodSpec) 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
- func HasContainersReadyCondition(pod *corev1.Pod) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶
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.
func HasContainersReadyCondition ¶
HasContainersReadyCondition iterates conditions of the specified Pod to check whether all containers in the Pod are ready.
Types ¶
This section is empty.