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
5 changed files with 5 additions and 6 deletions
@@ -56,6 +56,7 @@ spec:
description: CertificateRequestSpec defines the desired state of CertificateRequest
type: object
required:
- csr
- issuerRef
properties:
csr:
+1
View File
@@ -56,6 +56,7 @@ spec:
description: CertificateRequestSpec defines the desired state of CertificateRequest
type: object
required:
- csr
- issuerRef
properties:
csr:
+1 -2
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
@@ -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
@@ -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