certificate

package
v0.0.0-...-d08dcf8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rotate

func Rotate(rotate RotateCertificate) feature.StepFn

Rotate rotates a cert-manager issued certificate. The procedure follows the same process as the cert-manager command `cmctl renew <cert-name>` See also https://cert-manager.io/docs/usage/certificate/#actions-triggering-private-key-rotation

Types

type Certificate

type Certificate struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec Spec `json:"spec"`

	Status Status `json:"status"`
}

type RotateCertificate

type RotateCertificate struct {
	Certificate types.NamespacedName
}

type Spec

type Spec struct {
	SecretName string `json:"secretName"`
}

type Status

type Status struct {
	duckv1.Status `json:",inline"`
	// Copied from https://github.com/cert-manager/cert-manager/blob/master/pkg/apis/certmanager/v1/types_certificate.go
	LastFailureTime          *metav1.Time `json:"lastFailureTime,omitempty"`
	NotBefore                *metav1.Time `json:"notBefore,omitempty"`
	NotAfter                 *metav1.Time `json:"notAfter,omitempty"`
	RenewalTime              *metav1.Time `json:"renewalTime,omitempty"`
	Revision                 *int         `json:"revision,omitempty"`
	NextPrivateKeySecretName *string      `json:"nextPrivateKeySecretName,omitempty"`
	FailedIssuanceAttempts   *int         `json:"failedIssuanceAttempts,omitempty"`
}

Status defines the observed state of Certificate

Jump to

Keyboard shortcuts

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