csr

package
v0.0.0-...-e561cac Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NodeUserNamePrefix = nodeUserName + ":"
)

Variables

This section is empty.

Functions

func ParseCSR

func ParseCSR(csr []byte) (*x509.CertificateRequest, error)

ParseCSR extracts the CSR from the API object and decodes it.

Types

type Approver

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

Approver holds the information required to approve a node CSR

func NewApprover

func NewApprover(client client.Client, clientSet *kubernetes.Clientset, csr *certificates.CertificateSigningRequest,
	log logr.Logger, recorder record.EventRecorder, watchNamespace string) (*Approver, error)

NewApprover returns a pointer to the Approver

func (*Approver) Approve

func (a *Approver) Approve() error

Approve determines if a CSR should be approved by WMCO, and if so, approves it by updating its status. This function is a NOOP if the CSR should not be approved.

Jump to

Keyboard shortcuts

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