csr

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 25 Imported by: 1

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 added in v0.11.0

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

type CSRLister added in v0.11.0

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

type CSRV1Approver added in v0.11.0

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

CSRV1Approver implement CSRApprover interface

func NewCSRV1Approver added in v0.11.0

func NewCSRV1Approver(client kubernetes.Interface) *CSRV1Approver

type CSRV1beta1Approver added in v0.11.0

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

func NewCSRV1beta1Approver added in v0.11.0

func NewCSRV1beta1Approver(client kubernetes.Interface) *CSRV1beta1Approver

type Reconciler added in v0.11.0

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

func NewCSRBootstrapReconciler added in v0.11.0

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

func NewCSRRenewalReconciler added in v0.11.0

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