webhook

package
v0.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(mgr ctrl.Manager, config *Config) error

Register registers all etcd-druid webhooks with the controller manager.

Types

type Config

type Config struct {
	// EtcdComponents is the configuration required for etcdcomponents webhook.
	EtcdComponents *etcdcomponents.Config
}

Config defines the configuration for etcd-druid webhooks.

func (*Config) AtLeaseOneEnabled

func (cfg *Config) AtLeaseOneEnabled() bool

AtLeaseOneEnabled returns true if at least one webhook is enabled. NOTE for contributors: For every new webhook, add a disjunction condition with the webhook's Enabled field.

func (*Config) InitFromFlags

func (cfg *Config) InitFromFlags(fs *flag.FlagSet)

InitFromFlags initializes the webhook config from the provided CLI flag set.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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