You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CertManagerConfig is for configuring cert-manager specifics.
169
-
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.issuerRef) && !has(self.issuerRef) || has(oldSelf.issuerRef) && has(self.issuerRef)",message="issuerRef may only be configured during creation"
170
+
// +kubebuilder:validation:XValidation:rule="has(self.addInjectorAnnotations) && self.addInjectorAnnotations != 'false' ? self.enabled != 'false' : true",message="certManagerConfig must have enabled set, to set addInjectorAnnotations"
170
171
typeCertManagerConfigstruct {
171
172
// enabled is for enabling the use of cert-manager for obtaining and renewing the
172
173
// certificates used for webhook server, instead of built-in certificates.
173
174
// Use `true` or `false` to indicate the preference.
174
175
// +kubebuilder:default:="false"
176
+
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="enabled is immutable once set"
175
177
// +kubebuilder:validation:Enum:="true";"false"
176
178
// +kubebuilder:validation:Required
177
179
Enabledstring`json:"enabled,omitempty"`
@@ -198,6 +200,7 @@ type CertManagerConfig struct {
198
200
199
201
// certificateRenewBefore is the ahead time to renew the webhook certificate
0 commit comments