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.

          Directories

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