cloudprovider

package
v1.50.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 11

Documentation

Index

Constants

View Source
const (
	// WebhookName is the name of the webhook.
	WebhookName = "cloudprovider"
)

Variables

This section is empty.

Functions

func New

New creates a new cloudprovider webhook.

func NewMutator

func NewMutator(logger logr.Logger, ensurer Ensurer) webhook.Mutator

NewMutator creates a new cloudprovider mutator.

Types

type Args

type Args struct {
	Provider             string
	Mutator              extensionswebhook.Mutator
	EnableObjectSelector bool
}

Args are the requirements to create a cloudprovider webhook.

type Ensurer

type Ensurer interface {
	EnsureCloudProviderSecret(ctx context.Context, gctx gcontext.GardenContext, new, old *corev1.Secret) error
}

Ensurer ensures that the cloudprovider secret conforms to the provider requirements.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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