Help us shape the future of Go! Take the 2026 Go Developer Survey

cainjector

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cainjector contains opt-in controllers that populate the caBundle fields of injectable Kubernetes resources (ValidatingWebhookConfiguration, MutatingWebhookConfiguration, CustomResourceDefinition conversion webhooks and APIServices) from a CA source driven by annotations. It is the controller-manager-library (CML) based port of the certman2 CA injector.

Index

Constants

View Source
const (
	// AnnotationInjectCAFrom is set on an injectable resource to inject the CA bundle taken from the
	// secret of the referenced certificate. Value format: "<namespace>/<certificate-name>".
	AnnotationInjectCAFrom = "cert.gardener.cloud/inject-ca-from"
	// AnnotationInjectCAFromSecret is set on an injectable resource to inject the CA bundle taken
	// directly from the referenced secret. Value format: "<namespace>/<secret-name>". The referenced
	// secret must carry the AnnotationAllowDirectInjection annotation set to "true".
	AnnotationInjectCAFromSecret = "cert.gardener.cloud/inject-ca-from-secret" // #nosec G101 -- not a credential, this is a Kubernetes annotation key
	// AnnotationAllowDirectInjection must be set to "true" on a secret to allow direct CA injection
	// via AnnotationInjectCAFromSecret.
	AnnotationAllowDirectInjection = "cert.gardener.cloud/allow-direct-injection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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