(ctx context.Context, pod *corev1.Pod)
| 4084 | } |
| 4085 | |
| 4086 | func 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 | |
| 4093 | func getDaemonsetControllerRevisionHash(ctx context.Context, daemonset *appsv1.DaemonSet, n ClusterPolicyController) (string, error) { |
| 4094 |