From 662900a1d3e5817ede37fa04f9e7ab2c48226f5c Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 7 May 2023 09:52:13 -0500 Subject: [PATCH] apis/acme/v1: ACMEIssuer: set omitempty on optional field This field is marked optional in the API docs, but is required when serializing JSON. Make it optional to match. Signed-off-by: Greg --- pkg/apis/acme/v1/types_issuer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/acme/v1/types_issuer.go b/pkg/apis/acme/v1/types_issuer.go index fa94893a4..9f663280c 100644 --- a/pkg/apis/acme/v1/types_issuer.go +++ b/pkg/apis/acme/v1/types_issuer.go @@ -52,7 +52,7 @@ type ACMEIssuer struct { // chains that has a certificate with this value as its issuer's CN // +optional // +kubebuilder:validation:MaxLength=64 - PreferredChain string `json:"preferredChain"` + PreferredChain string `json:"preferredChain,omitempty"` // Base64-encoded bundle of PEM CAs which can be used to validate the certificate // chain presented by the ACME server.