Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
Syncer synchronizes CA bundle to webhook configurations.
func NewSyncer ¶
func NewSyncer(client kubernetes.Interface, namespace, caBundleConfigMapName string, webhookRefs []WebhookRef) *Syncer
NewSyncer creates a new CA bundle syncer.
type WebhookRef ¶
type WebhookRef struct {
// Name is the name of the webhook configuration.
Name string
// Type is the type of webhook (validating or mutating).
Type WebhookType
}
WebhookRef references a webhook configuration to update.
type WebhookType ¶
type WebhookType string
WebhookType represents the type of webhook.
const ( // ValidatingWebhook represents a validating admission webhook. ValidatingWebhook WebhookType = "validating" // MutatingWebhook represents a mutating admission webhook. MutatingWebhook WebhookType = "mutating" )
Click to show internal directories.
Click to hide internal directories.