Adds comment about what the pickup ID is in the CSR controller

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
joshvanl 2021-06-30 18:13:55 +01:00
parent e0fc320d41
commit 6e57e1093f

View File

@ -127,6 +127,9 @@ func (v *Venafi) Sign(ctx context.Context, csr *certificatesv1.CertificateSignin
return err
}
// The signing process with Venafi is slow. The "pickupID" allows us to track
// the progress of the certificate signing. It is set as an annotation the
// first time the Certificate is reconciled.
pickupID := csr.GetAnnotations()[experimentalapi.CertificateSigningRequestVenafiPickupIDAnnotationKey]
// check if the pickup ID annotation is there, if not set it up.