Documentation ¶
Index ¶
- Constants
- func EnsureConfigMapChecksumAnnotation(ctx context.Context, template *corev1.PodTemplateSpec, c client.Client, ...) error
- func EnsureSecretChecksumAnnotation(ctx context.Context, template *corev1.PodTemplateSpec, c client.Client, ...) error
- func New(mgr manager.Manager, args Args) (*extensionswebhook.Webhook, error)
- type Args
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.
Types ¶
type Args ¶ added in v1.4.0
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 []extensionswebhook.Type // Mutator is a mutator to be used by the admission handler. Mutator extensionswebhook.Mutator // ObjectSelector is the object selector of the underlying webhook ObjectSelector *metav1.LabelSelector }
Args are arguments for creating a controlplane webhook.
Click to show internal directories.
Click to hide internal directories.