podtopologyspreadconstraints

package
v1.56.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of the webhook handler.
	HandlerName = "pod-topology-spread-constraints"
	// WebhookPath is the path at which the handler should be registered.
	WebhookPath = "/webhooks/pod-topology-spread-constraints"
)

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(mgr manager.Manager) error

AddToManager adds the webhook to a Manager using the default config.

func AddToManagerWithOptions

func AddToManagerWithOptions(mgr manager.Manager, conf WebhookConfig) error

AddToManagerWithOptions adds the webhook to a Manager with the given config.

func NewHandler

func NewHandler(logger logr.Logger) admission.Handler

NewHandler returns a new handler.

Types

type WebhookConfig

type WebhookConfig struct {
	Enabled bool
}

WebhookConfig is the completed configuration for the webhook.

type WebhookOptions

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

WebhookOptions are options for adding the webhook to a Manager.

func (*WebhookOptions) AddFlags

func (o *WebhookOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds the needed command line flags to the given FlagSet.

func (*WebhookOptions) Complete

func (o *WebhookOptions) Complete() error

Complete completes the given command line flags and set the defaultWebhookConfig accordingly.

func (*WebhookOptions) Completed

func (o *WebhookOptions) Completed() *WebhookConfig

Completed returns the completed WebhookConfig.

Jump to

Keyboard shortcuts

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