controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CertificateNameAnnotationKey is the label key used by cert-manager to indicate the source certificate for a secret
	CertificateNameAnnotationKey = "cert-manager.io/certificate-name"
)

Variables

View Source
var (
	// SyncedLabelKey is the label key used to easily find secrets created from this controller
	SyncedLabelKey = cachev1alpha1.GroupVersion.Group + "/synced-from-cache"

	// SourceAnnotationKey holds the namespace and name that matches the original source of the secret
	SourceAnnotationKey = cachev1alpha1.GroupVersion.Group + "/source"
)

Functions

This section is empty.

Types

type CachedCertificateReconciler

type CachedCertificateReconciler struct {
	CacheNamespace string

	client.Client
	Scheme *runtime.Scheme
}

CachedCertificateReconciler reconciles a CachedCertificate object

func (*CachedCertificateReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*CachedCertificateReconciler) SetupWithManager

func (r *CachedCertificateReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ResourceVersionChangesOnly

type ResourceVersionChangesOnly struct{}

ResourceVersionChangesOnly will filter out events that don't change the resource version

func (ResourceVersionChangesOnly) Create

Create skips all events

func (ResourceVersionChangesOnly) Delete

Delete skips all events

func (ResourceVersionChangesOnly) Generic

Generic skips all events

func (ResourceVersionChangesOnly) Update

Update will only trigger resyncs on actual updates that change the resource version

type UpstreamSecretReconciler

type UpstreamSecretReconciler struct {
	CacheNamespace   string
	CertNameIndexKey string

	client.Client
	Scheme *runtime.Scheme
}

UpstreamSecretReconciler triggers the reconcile of CachedCertificate objects as the upstream secrets change

func (*UpstreamSecretReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*UpstreamSecretReconciler) SetupWithManager

func (r *UpstreamSecretReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager. It will force reconciles only for secrets in the given namespace

Jump to

Keyboard shortcuts

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