Documentation ¶
Index ¶
- Constants
- func AddFinalizer(obj metav1.Object)
- func IsBeingDeleted(obj metav1.Object) bool
- func NeedToAddFinalizer(obj metav1.Object) bool
- func ParseCertificate(cert []byte) (*x509.Certificate, error)
- func RemoveFinalizer(obj metav1.Object)
- type CertificateRequestReconciler
- type KMSIssuerReconciler
- type KMSKeyReconciler
Constants ¶
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 ¶
AddFinalizer adds the finalizer to the object
func IsBeingDeleted ¶
IsBeingDeleted returns true if a deletion timestamp is set.
func NeedToAddFinalizer ¶
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 ¶
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 ¶
func (r *CertificateRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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) 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) SetupWithManager ¶
func (r *KMSKeyReconciler) SetupWithManager(mgr ctrl.Manager) error