Merge pull request #2368 from munnerz/cr-csr-required

Mark 'csr' field as required in CertificateRequest
This commit is contained in:
jetstack-bot 2019-11-15 02:29:02 +00:00 committed by GitHub
commit 0f99bcdeac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 6 deletions

View File

@ -56,6 +56,7 @@ spec:
description: CertificateRequestSpec defines the desired state of CertificateRequest
type: object
required:
- csr
- issuerRef
properties:
csr:

View File

@ -56,6 +56,7 @@ spec:
description: CertificateRequestSpec defines the desired state of CertificateRequest
type: object
required:
- csr
- issuerRef
properties:
csr:

View File

@ -124,8 +124,7 @@ type CertificateRequestSpec struct {
IssuerRef ObjectReference `json:"issuerRef"`
// Byte slice containing the PEM encoded CertificateSigningRequest
// +optional
CSRPEM []byte `json:"csr,omitempty"`
CSRPEM []byte `json:"csr"`
// IsCA will mark the resulting certificate as valid for signing. This
// implies that the 'signing' usage is set

View File

@ -73,8 +73,7 @@ type CertificateRequestSpec struct {
IssuerRef cmmeta.ObjectReference `json:"issuerRef"`
// Byte slice containing the PEM encoded CertificateSigningRequest
// +optional
CSRPEM []byte `json:"csr,omitempty"`
CSRPEM []byte `json:"csr"`
// IsCA will mark the resulting certificate as valid for signing. This
// implies that the 'cert sign' usage is set

View File

@ -65,8 +65,7 @@ type CertificateRequestSpec struct {
IssuerRef cmmeta.ObjectReference `json:"issuerRef"`
// Byte slice containing the PEM encoded CertificateSigningRequest
// +optional
CSRPEM []byte `json:"csr,omitempty"`
CSRPEM []byte `json:"csr"`
// IsCA will mark the resulting certificate as valid for signing. This
// implies that the 'signing' usage is set