diff --git a/apis/vshn/v1/common_types.go b/apis/vshn/v1/common_types.go index 2eba2a9995..008465dbe4 100644 --- a/apis/vshn/v1/common_types.go +++ b/apis/vshn/v1/common_types.go @@ -196,7 +196,7 @@ type Security struct { // DeletionProtection blocks the deletion of the instance if it is enabled (enabled by default) // +kubebuilder:default=true - DeletionProtection bool `json:"deletionProtection,omitempty"` + DeletionProtection bool `json:"deletionProtection"` // AllowedGroups defines a list of Groups that have limited access to the instance namespace AllowedGroups []string `json:"allowedGroups,omitempty"` diff --git a/apis/vshn/v1/dbaas_vshn_postgresql.go b/apis/vshn/v1/dbaas_vshn_postgresql.go index 7dcfa71219..bd958e2983 100644 --- a/apis/vshn/v1/dbaas_vshn_postgresql.go +++ b/apis/vshn/v1/dbaas_vshn_postgresql.go @@ -186,7 +186,7 @@ type VSHNPostgreSQLBackup struct { // DeletionProtection will protect the instance from being deleted for the given retention time. // This is enabled by default. // +kubebuilder:default=true - DeletionProtection *bool `json:"deletionProtection,omitempty"` + DeletionProtection *bool `json:"deletionProtection"` // DeletionRetention specifies in days how long the instance should be kept after deletion. // The default is keeping it one week.