@@ -60,11 +60,11 @@ type PgclusterSpec struct {
6060 Exporter bool `json:"exporter"`
6161 ExporterPort string `json:"exporterport"`
6262
63- PrimaryStorage PgStorageSpec
64- WALStorage PgStorageSpec
65- ReplicaStorage PgStorageSpec
66- BackrestStorage PgStorageSpec
67- PGAdminStorage PgStorageSpec
63+ PrimaryStorage PgStorageSpec `json:"PrimaryStorage"`
64+ WALStorage PgStorageSpec `json:"WALStorage"`
65+ ReplicaStorage PgStorageSpec `json:"ReplicaStorage"`
66+ BackrestStorage PgStorageSpec `json:"BackrestStorage"`
67+ PGAdminStorage PgStorageSpec `json:"PGAdminStorage"`
6868
6969 // Resources behaves just like the "Requests" section of a Kubernetes
7070 // container definition. You can set individual items such as "cpu" and
@@ -120,8 +120,8 @@ type PgclusterSpec struct {
120120 UserLabels map [string ]string `json:"userlabels"`
121121 NodeAffinity NodeAffinitySpec `json:"nodeAffinity"`
122122 PodAntiAffinity PodAntiAffinitySpec `json:"podAntiAffinity"`
123- SyncReplication * bool `json:"syncReplication"`
124- BackrestConfig []v1.VolumeProjection `json:"backrestConfig"`
123+ SyncReplication * bool `json:"syncReplication,omitempty "`
124+ BackrestConfig []v1.VolumeProjection `json:"backrestConfig,omitempty "`
125125 BackrestGCSBucket string `json:"backrestGCSBucket"`
126126 BackrestGCSEndpoint string `json:"backrestGCSEndpoint"`
127127 BackrestGCSKeyType string `json:"backrestGCSKeyType"`
@@ -275,7 +275,7 @@ const NodeAffinityDefaultWeight int32 = 10
275275//
276276// All of these are optional, so one must ensure they check for nils.
277277type NodeAffinitySpec struct {
278- Default * v1.NodeAffinity `json:"default"`
278+ Default * v1.NodeAffinity `json:"default,omitempty "`
279279}
280280
281281// NodeAffinityType indicates the type of node affinity that the request seeks
0 commit comments