certmanager

package
v4.0.0-...-cb4bf2f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// FinalizerName is the name of the kuberneter finalizer being added to the KMSIssuer resources.
	FinalizerName = "kms-issuer.finalizers.cert-manager.skyscanner.net"
)

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(obj metav1.Object)

AddFinalizer adds the finalizer to the object

func IsBeingDeleted

func IsBeingDeleted(obj metav1.Object) bool

IsBeingDeleted returns true if a deletion timestamp is set.

func NeedToAddFinalizer

func NeedToAddFinalizer(obj metav1.Object) bool

NeedToAddFinalizer checks if need to add finalizer to object

func ParseCertificate

func ParseCertificate(cert []byte) (*x509.Certificate, error)

ParseCertificate parse the x509 certificate. Returns an error if the certificate pem is invalid.

func RemoveFinalizer

func RemoveFinalizer(obj metav1.Object)

RemoveFinalizer removes the specified finalizer

Types

type CertificateRequestReconciler

type CertificateRequestReconciler struct {
	client.Client
	Log      logr.Logger
	Recorder record.EventRecorder
	KMSCA    *kmsca.KMSCA

	Clock                  clock.Clock
	CheckApprovedCondition bool
}

CertificateRequestReconciler reconciles a StepIssuer object.

func (*CertificateRequestReconciler) Reconcile

Reconcile will read and validate a KMSIssuer resource associated to the CertificateRequest resource, and it will sign the CertificateRequest with the provisioner in the KMSIssuer.

func (*CertificateRequestReconciler) SetupWithManager

func (r *CertificateRequestReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager initialises the CertificateRequest controller into the controller runtime.

type KMSIssuerReconciler

type KMSIssuerReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	KMSCA    *kmsca.KMSCA
}

KMSIssuerReconciler reconciles a KMSIssuer object.

func NewKMSIssuerReconciler

func NewKMSIssuerReconciler(mgr manager.Manager, ca *kmsca.KMSCA) *KMSIssuerReconciler

NewKMSIssuerReconciler Initialise a new KMSIssuerReconciler

func (*KMSIssuerReconciler) Reconcile

func (r *KMSIssuerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile KMSIssuer resources.

func (*KMSIssuerReconciler) SetupWithManager

func (r *KMSIssuerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager is pre-generated

type KMSKeyReconciler

type KMSKeyReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	KMSCA    *kmsca.KMSCA
}

KMSKeyReconciler reconciles a KMSKey object

func NewKMSKeyReconciler

func NewKMSKeyReconciler(mgr manager.Manager, ca *kmsca.KMSCA) *KMSKeyReconciler

NewKMSKeyReconciler Initialise a new NewKMSKeyReconciler

func (*KMSKeyReconciler) Reconcile

func (r *KMSKeyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*KMSKeyReconciler) SetupWithManager

func (r *KMSKeyReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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