Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateVolumeGeneration ¶
func UpdateVolumeGeneration(ctx context.Context, kubeClient kubernetes.Interface, pl corev1listers.PodLister, ns string, ls map[string]string) error
UpdateVolumeGeneration updates the volume generation annotation for all pods matching the selector. This technique is used to trigger immediate configmap volume refresh without restarting the pod, see https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#mounted-configmaps-are-updated-automatically NOTE: update spec.template.metadata.annotations on the deployment resource causes pods to be recreated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.