package certificates
import "k8s.io/kubernetes/pkg/controller/certificates"
Package certificates implements an abstract controller that is useful for building controllers that manage CSRs
Index ¶
- func GetCertApprovalCondition(status *certificates.CertificateSigningRequestStatus) (approved bool, denied bool)
- func IgnorableError(s string, args ...interface{}) ignorableError
- func IsCertificateRequestApproved(csr *certificates.CertificateSigningRequest) bool
- type CertificateController
Functions ¶
func GetCertApprovalCondition ¶
func GetCertApprovalCondition(status *certificates.CertificateSigningRequestStatus) (approved bool, denied bool)
func IgnorableError ¶
func IgnorableError(s string, args ...interface{}) ignorableError
IgnorableError returns an error that we shouldn't handle (i.e. log) because it's spammy and usually user error. Instead we will log these errors at a higher log level. We still need to throw these errors to signal that the sync should be retried.
func IsCertificateRequestApproved ¶
func IsCertificateRequestApproved(csr *certificates.CertificateSigningRequest) bool
IsCertificateRequestApproved returns true if a certificate request has the "Approved" condition and no "Denied" conditions; false otherwise.
Types ¶
type CertificateController ¶
type CertificateController struct {
// contains filtered or unexported fields
}
func NewCertificateController ¶
func NewCertificateController( kubeClient clientset.Interface, csrInformer certificatesinformers.CertificateSigningRequestInformer, handler func(*certificates.CertificateSigningRequest) error, ) *CertificateController
func (*CertificateController) Run ¶
func (cc *CertificateController) Run(workers int, stopCh <-chan struct{})
Run the main goroutine responsible for watching and syncing jobs.
Source Files ¶
certificate_controller.go certificate_controller_utils.go
Directories ¶
Path | Synopsis |
---|---|
pkg/controller/certificates/approver | Package approver implements an automated approver for kubelet certificates. |
pkg/controller/certificates/cleaner | Package cleaner implements an automated cleaner that does garbage collection on CSRs that meet specific criteria. |
pkg/controller/certificates/rootcacertpublisher | |
pkg/controller/certificates/signer | Package signer implements a CA signer that uses keys stored on local disk. |
- Version
- v1.14.6
- Published
- Aug 16, 2019
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 1 minute ago –
Tools for package owners.