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 <gdvalle@users.noreply.github.com>
This commit is contained in:
Greg 2023-05-07 09:52:13 -05:00 committed by GitHub
parent acdb055106
commit 662900a1d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.