Skip to content

Instantly share code, notes, and snippets.

@abohmeed
Created June 1, 2020 10:55
Show Gist options
  • Select an option

  • Save abohmeed/66f9a02e8f283dbb6335818e71aee955 to your computer and use it in GitHub Desktop.

Select an option

Save abohmeed/66f9a02e8f283dbb6335818e71aee955 to your computer and use it in GitHub Desktop.
check("The following error occured while sending the Certificate Signing Request", err)
csr.Status.Conditions = append(csr.Status.Conditions, certificates.CertificateSigningRequestCondition{
Type: certificates.CertificateApproved,
Reason: "User activation",
Message: "This CSR was approved",
LastUpdateTime: v1.Now(),
})
csr, err = clientset.CertificatesV1beta1().CertificateSigningRequests().UpdateApproval(context.Background(), csr, v1.UpdateOptions{})
check("The following error occured while approving the Certificate Signing Request", err)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment