@@ -12,10 +12,10 @@ import (
1212// Config is the top-level deployment configuration, combining settings for
1313// roxie itself, the operator, Central, and SecuredCluster.
1414type Config struct {
15- Roxie RoxieConfig `yaml:"roxie"`
16- Operator OperatorConfig `yaml:"operator"`
17- Central CentralConfig `yaml:"central"`
18- SecuredCluster SecuredClusterConfig `yaml:"securedCluster"`
15+ Roxie RoxieConfig `yaml:"roxie,omitempty "`
16+ Operator OperatorConfig `yaml:"operator,omitempty "`
17+ Central CentralConfig `yaml:"central,omitempty "`
18+ SecuredCluster SecuredClusterConfig `yaml:"securedCluster,omitempty "`
1919}
2020
2121// NewConfig returns a Config populated with default values.
@@ -65,9 +65,9 @@ func (c *Config) MergeInUnstructured(m map[string]interface{}) error {
6565
6666// RoxieConfig holds roxie-level settings such as version and feature flags.
6767type RoxieConfig struct {
68- Version string `yaml:"version"`
69- KonfluxImages bool `yaml:"konfluxImages"`
70- FeatureFlags map [string ]bool `yaml:"featureFlags"`
68+ Version string `yaml:"version,omitempty "`
69+ KonfluxImages bool `yaml:"konfluxImages,omitempty "`
70+ FeatureFlags map [string ]bool `yaml:"featureFlags,omitempty "`
7171}
7272
7373// NewRoxieConfig returns a RoxieConfig with initialized defaults.
@@ -79,9 +79,9 @@ func NewRoxieConfig() RoxieConfig {
7979
8080// OperatorConfig controls how the ACS operator is deployed.
8181type OperatorConfig struct {
82- SkipDeployment bool `yaml:"skipDeployment"`
83- DeployViaOlm bool `yaml:"deployViaOlm"`
84- Version string `yaml:"version"`
82+ SkipDeployment bool `yaml:"skipDeployment,omitempty "`
83+ DeployViaOlm bool `yaml:"deployViaOlm,omitempty "`
84+ Version string `yaml:"version,omitempty "`
8585}
8686
8787// Configure derives the operator version from the roxie configuration.
@@ -92,14 +92,14 @@ func (c *OperatorConfig) Configure(roxieConfig *RoxieConfig) error {
9292
9393// CentralConfig holds deployment settings for the Central component.
9494type CentralConfig struct {
95- Namespace string `yaml:"namespace"`
96- ResourceProfile types.ResourceProfile `yaml:"resourceProfile"`
97- PauseReconciliation bool `yaml:"pauseReconciliation"`
98- Exposure * types.Exposure `yaml:"exposure"`
99- DeployTimeout time.Duration `yaml:"deployTimeout"`
100- PortForwarding * bool `yaml:"portForwarding"`
101- EarlyReadiness bool `yaml:"earlyReadiness"`
102- Spec map [string ]interface {} `yaml:"spec"`
95+ Namespace string `yaml:"namespace,omitempty "`
96+ ResourceProfile types.ResourceProfile `yaml:"resourceProfile,omitempty "`
97+ PauseReconciliation bool `yaml:"pauseReconciliation,omitempty "`
98+ Exposure * types.Exposure `yaml:"exposure,omitempty "`
99+ DeployTimeout time.Duration `yaml:"deployTimeout,omitempty "`
100+ PortForwarding * bool `yaml:"portForwarding,omitempty "`
101+ EarlyReadiness bool `yaml:"earlyReadiness,omitempty "`
102+ Spec map [string ]interface {} `yaml:"spec,omitempty "`
103103}
104104
105105// DefaultCentralConfig returns a CentralConfig with sensible defaults.
@@ -194,12 +194,12 @@ func (c *CentralConfig) CustomResource() (map[string]interface{}, error) {
194194
195195// SecuredClusterConfig holds deployment settings for the SecuredCluster component.
196196type SecuredClusterConfig struct {
197- Namespace string `yaml:"namespace"`
198- ResourceProfile types.ResourceProfile `yaml:"resourceProfile"`
199- PauseReconciliation bool `yaml:"pauseReconciliation"`
200- DeployTimeout time.Duration `yaml:"deployTimeout"`
201- EarlyReadiness bool `yaml:"earlyReadiness"`
202- Spec map [string ]interface {} `yaml:"spec"`
197+ Namespace string `yaml:"namespace,omitempty "`
198+ ResourceProfile types.ResourceProfile `yaml:"resourceProfile,omitempty "`
199+ PauseReconciliation bool `yaml:"pauseReconciliation,omitempty "`
200+ DeployTimeout time.Duration `yaml:"deployTimeout,omitempty "`
201+ EarlyReadiness bool `yaml:"earlyReadiness,omitempty "`
202+ Spec map [string ]interface {} `yaml:"spec,omitempty "`
203203}
204204
205205// DefaultSecuredClusterConfig returns a SecuredClusterConfig with sensible defaults.
0 commit comments