Documentation ¶
Index ¶
- func Add(mgr manager.Manager, interval time.Duration, cfg platformv1.PodMutaterConfig) error
- func NewMutatingWebhook(client client.Client, cfg platformv1.PodMutaterConfig) *admission.Webhook
- func NewPodReconciler(mgr manager.Manager, cfg platformv1.PodMutaterConfig) reconcile.Reconciler
- func RequiresAnnotationUpdate(ns v1.Namespace, cfg platformv1.PodMutaterConfig, pods ...v1.Pod) []v1.Pod
- func UpdateAnnotations(ns v1.Namespace, cfg platformv1.PodMutaterConfig, pod *v1.Pod) (*v1.Pod, bool)
- type NamespaceReconciler
- type PodReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, interval time.Duration, cfg platformv1.PodMutaterConfig) error
func NewMutatingWebhook ¶
func NewMutatingWebhook(client client.Client, cfg platformv1.PodMutaterConfig) *admission.Webhook
+kubebuilder:webhook:path=/mutate-v1-pod,mutating=true,sideEffects=None,admissionReviewVersions=v1,failurePolicy=ignore,groups="",resources=pods,verbs=create;update,versions=v1,name=mutate-pods-v1.platform.flanksource.com
func NewPodReconciler ¶
func NewPodReconciler(mgr manager.Manager, cfg platformv1.PodMutaterConfig) reconcile.Reconciler
func RequiresAnnotationUpdate ¶
func RequiresAnnotationUpdate(ns v1.Namespace, cfg platformv1.PodMutaterConfig, pods ...v1.Pod) []v1.Pod
func UpdateAnnotations ¶
func UpdateAnnotations(ns v1.Namespace, cfg platformv1.PodMutaterConfig, pod *v1.Pod) (*v1.Pod, bool)
Types ¶
type NamespaceReconciler ¶
type PodReconciler ¶
type PodReconciler struct { client.Client Scheme *runtime.Scheme Config platformv1.PodMutaterConfig }
Click to show internal directories.
Click to hide internal directories.