pod

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func NewMutatingWebhook

func NewMutatingWebhook(client client.Client, cfg platformv1.PodMutaterConfig) *admission.Webhook

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 NamespaceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*NamespaceReconciler) Reconcile

func (r *NamespaceReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

+kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;update

type PodReconciler

type PodReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Config platformv1.PodMutaterConfig
}

func (*PodReconciler) Reconcile

func (r *PodReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

+kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;update;watch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL