From 9b9b66d7b42bb681933c47d4c66031bb74668314 Mon Sep 17 00:00:00 2001 From: JoshVanL Date: Wed, 12 Feb 2020 10:18:11 +0000 Subject: [PATCH] Updates CRDs with max/min keysize validation Signed-off-by: JoshVanL --- deploy/charts/cert-manager/crds/certificates.yaml | 4 ++++ deploy/manifests/00-crds.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/deploy/charts/cert-manager/crds/certificates.yaml b/deploy/charts/cert-manager/crds/certificates.yaml index 2426da833..a57b3d835 100644 --- a/deploy/charts/cert-manager/crds/certificates.yaml +++ b/deploy/charts/cert-manager/crds/certificates.yaml @@ -150,6 +150,8 @@ spec: and value must be one of (256, 384, 521) when KeyAlgorithm is set to "ecdsa". type: integer + maximum: 8192 + minimum: 0 organization: description: Organization is the organization to be used on the Certificate type: array @@ -389,6 +391,8 @@ spec: and value must be one of (256, 384, 521) when KeyAlgorithm is set to "ecdsa". type: integer + maximum: 8192 + minimum: 0 renewBefore: description: Certificate renew before expiration duration type: string diff --git a/deploy/manifests/00-crds.yaml b/deploy/manifests/00-crds.yaml index 7b8c7ab5f..5bd14dafe 100644 --- a/deploy/manifests/00-crds.yaml +++ b/deploy/manifests/00-crds.yaml @@ -356,6 +356,8 @@ spec: and value must be one of (256, 384, 521) when KeyAlgorithm is set to "ecdsa". type: integer + maximum: 8192 + minimum: 0 organization: description: Organization is the organization to be used on the Certificate type: array @@ -595,6 +597,8 @@ spec: and value must be one of (256, 384, 521) when KeyAlgorithm is set to "ecdsa". type: integer + maximum: 8192 + minimum: 0 renewBefore: description: Certificate renew before expiration duration type: string