webhookconfig

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package webhookconfig implements the webhook register and cert manager for the admission webhook.

Package webhookconfig implements the webhook register and cert manager for the admission webhook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertManager

func NewCertManager(
	clientConfig *rest.Config,
	certRenewer *varmortls.CertRenewer,
	secretInterface corev1.SecretInterface,
	secretInformer coreinformer.SecretInformer,
	stopCh <-chan struct{},
	log logr.Logger) *certManager

Types

type Register

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

Register manages webhook registration.

func NewRegister

func NewRegister(
	clientConfig *rest.Config,
	mutateInterface admissionv1.MutatingWebhookConfigurationInterface,
	secretInterface corev1.SecretInterface,
	deploymentInterface appsv1.DeploymentInterface,
	leaseInterface coordinationv1.LeaseInterface,
	varmorInterface varmorinterface.CrdV1beta1Interface,
	mwcInformer adminformers.MutatingWebhookConfigurationInformer,
	managerIP string,
	webhookTimeout int32,
	inContainer bool,
	stopCh <-chan struct{},
	log logr.Logger) *Register

NewRegister creates new Register instance

func (*Register) Check

func (wrc *Register) Check() error

Check returns an error if the webhook is not configured

func (*Register) Register

func (wrc *Register) Register() error

Register clean up the old webhooks and re-creates admission webhooks configs on cluster

func (*Register) Remove

func (wrc *Register) Remove()

Remove removes the webhook configuration, secrets and leases

func (*Register) ShouldRemoveVarmorResources

func (wrc *Register) ShouldRemoveVarmorResources() bool

Jump to

Keyboard shortcuts

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