From c0a471ffa9232d7534b4302917299c95a3a43c9a Mon Sep 17 00:00:00 2001 From: Dimitri Koshkin Date: Tue, 16 Apr 2024 14:25:31 -0700 Subject: [PATCH] fix: add omitempty to CCM Credentials struct --- api/v1alpha1/addon_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1alpha1/addon_types.go b/api/v1alpha1/addon_types.go index 27f08077d..6a74b5645 100644 --- a/api/v1alpha1/addon_types.go +++ b/api/v1alpha1/addon_types.go @@ -311,7 +311,7 @@ func (CSI) VariableSchema() clusterv1.VariableSchema { type CCM struct { // A reference to the Secret for credential information for the target Prism Central instance // +optional - Credentials *corev1.LocalObjectReference `json:"credentials"` + Credentials *corev1.LocalObjectReference `json:"credentials,omitempty"` } func (CCM) VariableSchema() clusterv1.VariableSchema {