Documentation
¶
Index ¶
- func AddPodFinalizer(ctx context.Context, pod client.Object, finalizerName string) error
- func Init(mgr ctrl.Manager)
- func RemovePodFinalizer(ctx context.Context, pod client.Object, finalizerName string) error
- func SetPodAnnotation(ctx context.Context, pod *corev1.Pod, name, value string) error
- func StripNodeUnusedFields(obj any) (any, error)
- func StripPodUnusedFields(obj any) (any, error)
- func Update(ctx context.Context, obj client.Object, mutate func()) error
- func UpdateStatus(ctx context.Context, obj client.Object, mutate func()) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPodFinalizer ¶
func RemovePodFinalizer ¶
func SetPodAnnotation ¶
func RemovePodAnnotation(ctx context.Context, pod *corev1.Pod, name string) error { return update(ctx, pod, func() { if pod.Annotations == nil { return } delete(pod.Annotations, name) }, false, false) }
func StripNodeUnusedFields ¶ added in v1.1.0
func StripPodUnusedFields ¶
StripPodUnusedFields is the transform function for shared pod informers, it removes unused fields from objects before they are stored in the cache to save memory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.