controlplane

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WebhookName is the webhook name.
	WebhookName = "controlplane"
	// ExposureWebhookName is the exposure webhook name.
	ExposureWebhookName = "controlplaneexposure"
	// BackupWebhookName is the backup webhook name.
	BackupWebhookName = "controlplanebackup"

	// KindSeed - A controlplane seed webhook is applied only to those shoot namespaces that have the correct Seed provider label.
	KindSeed = "seed"
	// KindShoot - A controlplane shoot webhook is applied only to those shoot namespaces that have the correct Shoot provider label.
	KindShoot = "shoot"
	// KindBackup - A controlplane backup webhook is applied only to those shoot namespaces that have the correct Backup provider label.
	KindBackup = "backup"
)

Variables

This section is empty.

Functions

func EnsureConfigMapChecksumAnnotation

func EnsureConfigMapChecksumAnnotation(ctx context.Context, template *corev1.PodTemplateSpec, c client.Client, namespace, name string) error

EnsureConfigMapChecksumAnnotation ensures that the given pod template has an annotation containing the checksum of the configmap with the given name and namespace.

func EnsureSecretChecksumAnnotation

func EnsureSecretChecksumAnnotation(ctx context.Context, template *corev1.PodTemplateSpec, c client.Client, namespace, name string) error

EnsureSecretChecksumAnnotation ensures that the given pod template has an annotation containing the checksum of the secret with the given name and namespace.

func New

New creates a new controlplane webhook with the given args.

Types

type Args

type Args struct {
	// Kind is the kind of this webhook
	Kind string
	// Provider is the provider of this webhook.
	Provider string
	// Types is a list of resource types.
	Types []client.Object
	// Mutator is a mutator to be used by the admission handler.
	Mutator extensionswebhook.Mutator
}

Args are arguments for creating a controlplane webhook.

Directories

Path Synopsis
mock
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