MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / getPodControllerRevisionHash

Function getPodControllerRevisionHash

controllers/object_controls.go:4086–4091  ·  view source on GitHub ↗
(ctx context.Context, pod *corev1.Pod)

Source from the content-addressed store, hash-verified

4084}
4085
4086func getPodControllerRevisionHash(ctx context.Context, pod *corev1.Pod) (string, error) {
4087 if hash, ok := pod.Labels[PodControllerRevisionHashLabelKey]; ok {
4088 return hash, nil
4089 }
4090 return "", fmt.Errorf("controller-revision-hash label not present for pod %s", pod.Name)
4091}
4092
4093func getDaemonsetControllerRevisionHash(ctx context.Context, daemonset *appsv1.DaemonSet, n ClusterPolicyController) (string, error) {
4094

Callers 1

isDaemonSetReadyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected