Documentation
¶
Index ¶
Constants ¶
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 ¶
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 ¶
func (r *CachedCertificateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (ResourceVersionChangesOnly) Create(e event.CreateEvent) bool
Create skips all events
func (ResourceVersionChangesOnly) Delete ¶
func (ResourceVersionChangesOnly) Delete(e event.DeleteEvent) bool
Delete skips all events
func (ResourceVersionChangesOnly) Generic ¶
func (ResourceVersionChangesOnly) Generic(e event.GenericEvent) bool
Generic skips all events
func (ResourceVersionChangesOnly) Update ¶
func (ResourceVersionChangesOnly) Update(e event.UpdateEvent) bool
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 ¶
func (r *UpstreamSecretReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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