controller

package
v0.0.0-...-2b915d2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package controller implements a k8s controller for managing the lifecycle of a validating webhook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewValidatingWebhookController

func NewValidatingWebhookController(client kube.Client,
	revision, ns string, caBundleWatcher *keycertbundle.Watcher,
) *Controller

NewValidatingWebhookController creates a new Controller.

func (*Controller) Reconcile

func (c *Controller) Reconcile(key types.NamespacedName) error

func (*Controller) Run

func (c *Controller) Run(stop <-chan struct{})

type Options

type Options struct {
	// Istio system namespace where istiod resides.
	WatchedNamespace string

	// File path to the x509 certificate bundle used by the webhook server
	// and patched into the webhook config.
	CABundleWatcher *keycertbundle.Watcher

	// Revision for control plane performing patching on the validating webhook.
	Revision string

	// Name of the service running the webhook server.
	ServiceName string
}

func (Options) String

func (o Options) String() string

String produces a string field version of the arguments for debugging.

func (Options) Validate

func (o Options) Validate() error

Validate the options that exposed to end users

Jump to

Keyboard shortcuts

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