csr

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

package csr contains the hub-side reconciler for auto approving the renewal CertificateSigningRequests for an accepted managed cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCSRApprovingController

func NewCSRApprovingController[T CSR](
	csrInformer cache.SharedIndexInformer,
	lister CSRLister[T],
	approver CSRApprover[T],
	reconcilers []Reconciler,
	recorder events.Recorder) factory.Controller

NewCSRApprovingController creates a new csr approving controller

Types

type CSRApprover

type CSRApprover[T CSR] interface {
	// contains filtered or unexported methods
}

type CSRLister

type CSRLister[T CSR] interface {
	Get(name string) (T, error)
}

type CSRV1Approver

type CSRV1Approver struct {
	// contains filtered or unexported fields
}

CSRV1Approver implement CSRApprover interface

func NewCSRV1Approver

func NewCSRV1Approver(client kubernetes.Interface) *CSRV1Approver

type CSRV1beta1Approver

type CSRV1beta1Approver struct {
	// contains filtered or unexported fields
}

func NewCSRV1beta1Approver

func NewCSRV1beta1Approver(client kubernetes.Interface) *CSRV1beta1Approver

type Reconciler

type Reconciler interface {
	Reconcile(context.Context, csrInfo, approveCSRFunc) (reconcileState, error)
}

func NewCSRBootstrapReconciler

func NewCSRBootstrapReconciler(kubeClient kubernetes.Interface,
	clusterClient clusterclientset.Interface,
	clusterLister clusterv1listers.ManagedClusterLister,
	approvalUsers []string,
	recorder events.Recorder) Reconciler

func NewCSRRenewalReconciler

func NewCSRRenewalReconciler(kubeClient kubernetes.Interface, recorder events.Recorder) Reconciler

Jump to

Keyboard shortcuts

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