controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTrustBundle

func AddTrustBundle(ctx context.Context, mgr ctrl.Manager, opts Options) error

AddTrustBundle will register the trust-bundle controller with the controller-manager Manager. The trust-bundle controller will reconcile the target trust-bundle cert-manager Certificate resource, and ensure that the dapr trust-bundle is updated with the latest issuer certificate. Trust anchors are always appended to the trust-bundle, and never removed.

Types

type Options

type Options struct {
	// Log is the logger used by the controllers.
	Log logr.Logger

	// DaprNamespace is the namespace that dapr is installed in.
	// Required.
	DaprNamespace string

	// TrustBundleCertificateName is the name of the cert-manager Certificate
	// resource that is used to generate the trust-bundle. Must be in the same
	// namespace as the dapr installation.
	// Required.
	TrustBundleCertificateName string

	// WebhookCertificateName is the name of the cert-manager Certificate
	// which signs and manages the dapr webhook certificate. Must be in the same
	// namespace as the dapr installation.
	// Required.
	WebhookCertificateName string

	// SidecarInjectorCertificateName is the name of the cert-manager Certificate
	// which signs and manages the dapr sidecar injector certificate. Must be in the same
	// namespace as the dapr installation.
	// Required.
	SidecarInjectorCertificateName string

	// TrustAnchor is used for the trust-bundle trust anchors. If empty the nil,
	// the `ca.crt` created by cert-manager will be used.
	TrustAnchor trustanchor.Interface
}

Options configure the dapr-cert-manager controllers.

Jump to

Keyboard shortcuts

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