cloudprovider

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 13

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
}

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.

Jump to

Keyboard shortcuts

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