csr

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonApproved = "AutoApproved"
)

Variables

View Source
var ErrNodeCertificateNotFound = errors.New("node certificate not found")

Functions

This section is empty.

Types

type ApprovalManager

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

func NewApprovalManager

func NewApprovalManager(log logrus.FieldLogger, clientset kubernetes.Interface) *ApprovalManager

func (*ApprovalManager) Start

func (h *ApprovalManager) Start(ctx context.Context) error

func (*ApprovalManager) Stop

func (h *ApprovalManager) Stop()

type Certificate

type Certificate struct {
	Name string
	// contains filtered or unexported fields
}

Certificate wraps v1 and v1beta1 csr.

func (*Certificate) ApproveCSRCertificate added in v0.54.5

func (c *Certificate) ApproveCSRCertificate(ctx context.Context, client kubernetes.Interface) (*Certificate, error)

ApproveCSRCertificate approves csr.

func (*Certificate) Approved

func (c *Certificate) Approved() bool

func (*Certificate) DeleteCSR added in v0.54.5

func (c *Certificate) DeleteCSR(ctx context.Context, client kubernetes.Interface) error

DeleteCSR deletes csr.

func (*Certificate) ForCASTAINode added in v0.54.6

func (c *Certificate) ForCASTAINode() bool

func (*Certificate) NewCSR

func (c *Certificate) NewCSR(ctx context.Context, client kubernetes.Interface) (*Certificate, error)

NewCSR creates new csr.

func (*Certificate) OriginalCSRName added in v0.57.0

func (c *Certificate) OriginalCSRName() string

func (*Certificate) Outdated added in v0.54.6

func (c *Certificate) Outdated() bool

Outdated returns, whether the certificate request is old and should not be processed by cluster-controller. It has nothing to do with certificate expiration.

func (*Certificate) RequestingUser

func (c *Certificate) RequestingUser() string

func (*Certificate) SignerName added in v0.57.0

func (c *Certificate) SignerName() string

func (*Certificate) Usages added in v0.57.0

func (c *Certificate) Usages() []string

func (*Certificate) Validate

func (c *Certificate) Validate() error

Jump to

Keyboard shortcuts

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