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 CSR ¶
type CSR interface { *certificatesv1.CertificateSigningRequest | *certificatesv1beta1.CertificateSigningRequest }
type CSRApprover ¶
type CSRApprover[T CSR] interface { // contains filtered or unexported methods }
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
Click to show internal directories.
Click to hide internal directories.