rootcapublisher

package
v1.63.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RootCACertConfigMapName is a constant for the name of the ConfigMap which contains the root CA certificate.
	RootCACertConfigMapName = "kube-root-ca.crt"
	// RootCADataKey is a constant for the data key in a ConfigMap containing the root CA certificate.
	RootCADataKey = "ca.crt"

	// DescriptionAnnotation is constant for annotation key of the config map.
	DescriptionAnnotation = "kubernetes.io/description"
)
View Source
const ControllerName = "root-ca-publisher"

ControllerName is the name of the controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler added in v1.59.0

type Reconciler struct {
	TargetClient client.Client
	Config       config.RootCAPublisherControllerConfig
	RootCA       string
}

Reconciler distributes the root CA.

func (*Reconciler) AddToManager added in v1.59.0

func (r *Reconciler) AddToManager(mgr manager.Manager, targetCluster cluster.Cluster) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) ConfigMapPredicate added in v1.59.0

func (r *Reconciler) ConfigMapPredicate() predicate.Predicate

ConfigMapPredicate returns the predicate for ConfigMaps.

func (*Reconciler) NamespacePredicate added in v1.59.0

func (r *Reconciler) NamespacePredicate() predicate.Predicate

NamespacePredicate returns the predicate for Namespaces.

func (*Reconciler) Reconcile added in v1.59.0

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile performs the main reconciliation logic.

Jump to

Keyboard shortcuts

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