certinjectionwebhook

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdmissionController

func NewAdmissionController(
	name string,
	path string,
	wc func(context.Context) context.Context,

	labels []string,
	annotations []string,
	envVars []corev1.EnvVar,
	setupCACertsImage string,
	caCertsData string,
	imagePullSecrets corev1.LocalObjectReference,
) (*admissionController, error)

func NewController

func NewController(
	ctx context.Context,
	name, path string,
	wc func(context.Context) context.Context,
	labels []string,
	annotations []string,
	envVars []corev1.EnvVar,
	caCertsData, setupCaCertsImage string,
	imagePullSecrets corev1.LocalObjectReference,
) (*controller.Impl, error)

func NewReconciler

func NewReconciler(name string,
	path string,
	k8sClient kubernetes.Interface,
	mwhlister admissionlisters.MutatingWebhookConfigurationLister,
	secretlister corelisters.SecretLister,
	secretName string) *reconciler

Types

type Webhook

type Webhook struct {
	// contains filtered or unexported fields
}

func (Webhook) Admit

func (ac Webhook) Admit(ctx context.Context, request *admissionv1.AdmissionRequest) *admissionv1.AdmissionResponse

func (Webhook) Path

func (ac Webhook) Path() string

func (Webhook) Reconcile

func (r Webhook) Reconcile(ctx context.Context, key string) error

func (Webhook) SetCaCerts

func (ac Webhook) SetCaCerts(ctx context.Context, obj *corev1.Pod)

func (Webhook) SetEnvVars

func (ac Webhook) SetEnvVars(ctx context.Context, obj *corev1.Pod)

Jump to

Keyboard shortcuts

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