etcdcomponents

package
v0.25.0 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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFromFlags

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

InitFromFlags initializes the config from the provided CLI flag set.

Types

type Config

type Config struct {
	// Enabled indicates whether the Etcd Components Webhook is enabled.
	Enabled bool
	// ReconcilerServiceAccount is the name of the service account used by etcd-druid for reconciling etcd resources.
	ReconcilerServiceAccount string
	// ExemptServiceAccounts is a list of service accounts that are exempt from Etcd Components Webhook checks.
	ExemptServiceAccounts []string
}

Config defines the configuration for the EtcdComponents Webhook.

type Handler

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

Handler is the Etcd Components protection Webhook admission handler. All resources that are provisioned by druid as part of etcd cluster provisioning are protected from unintended modification or deletion by this admission handler.

func NewHandler

func NewHandler(mgr manager.Manager, config *Config) (*Handler, error)

NewHandler creates a new handler for Etcd Components Webhook.

func (*Handler) Handle

Handle handles admission requests and prevents unintended changes to resources created by etcd-druid.

func (*Handler) RegisterWithManager

func (h *Handler) RegisterWithManager(mgr manager.Manager) error

RegisterWithManager registers Handler to the given manager.

Jump to

Keyboard shortcuts

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