cabundle

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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.

func (*Syncer) Start

func (s *Syncer) Start(ctx context.Context) error

Start starts watching the CA bundle configmap and syncing to webhook configurations.

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"
)

Jump to

Keyboard shortcuts

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