Merge pull request #2368 from munnerz/cr-csr-required
Mark 'csr' field as required in CertificateRequest
This commit is contained in:
commit
0f99bcdeac
@ -56,6 +56,7 @@ spec:
|
||||
description: CertificateRequestSpec defines the desired state of CertificateRequest
|
||||
type: object
|
||||
required:
|
||||
- csr
|
||||
- issuerRef
|
||||
properties:
|
||||
csr:
|
||||
|
||||
@ -56,6 +56,7 @@ spec:
|
||||
description: CertificateRequestSpec defines the desired state of CertificateRequest
|
||||
type: object
|
||||
required:
|
||||
- csr
|
||||
- issuerRef
|
||||
properties:
|
||||
csr:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user