From f0a87b5b868a86e1042da5229b8ffd1b39c087aa Mon Sep 17 00:00:00 2001 From: David Gubler Date: Tue, 17 Jun 2025 13:03:19 +0200 Subject: [PATCH] fix: bools where nil is interpreted as true can't have omitempty --- apis/vshn/v1/common_types.go | 2 +- apis/vshn/v1/dbaas_vshn_postgresql.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.