From 0d1914a4c5a54c92100603f3a2cc568981250941 Mon Sep 17 00:00:00 2001 From: Kevin Kendzia Date: Fri, 3 Jan 2025 10:38:04 +0100 Subject: [PATCH] fix: remove omitempty in invalid json tag combination Signed-off-by: Kevin Kendzia --- apis/release/v1alpha1/types.go | 2 +- apis/release/v1beta1/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/release/v1alpha1/types.go b/apis/release/v1alpha1/types.go index 3b438d0..bf684c9 100644 --- a/apis/release/v1alpha1/types.go +++ b/apis/release/v1alpha1/types.go @@ -40,7 +40,7 @@ type NamespacedName struct { // DataKeySelector defines required spec to access a key of a configmap or secret type DataKeySelector struct { - NamespacedName `json:",inline,omitempty"` + NamespacedName `json:",inline"` Key string `json:"key,omitempty"` Optional bool `json:"optional,omitempty"` } diff --git a/apis/release/v1beta1/types.go b/apis/release/v1beta1/types.go index 8721287..7a4035a 100644 --- a/apis/release/v1beta1/types.go +++ b/apis/release/v1beta1/types.go @@ -47,7 +47,7 @@ type NamespacedName struct { // DataKeySelector defines required spec to access a key of a configmap or secret type DataKeySelector struct { - NamespacedName `json:",inline,omitempty"` + NamespacedName `json:",inline"` Key string `json:"key,omitempty"` Optional bool `json:"optional,omitempty"` }