Skip to content

Commit

Permalink
cli: omitempty infrastructure fields
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Sep 28, 2023
1 parent 4a66899 commit dd096a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type Infrastructure struct {
ClusterEndpoint string `yaml:"clusterEndpoint"`
InitSecret string `yaml:"initSecret"`
APIServerCertSANs []string `yaml:"apiServerCertSANs"`
Azure *Azure `yaml:"azure"`
GCP *GCP `yaml:"gcp"`
Azure *Azure `yaml:"azure,omitempty"`
GCP *GCP `yaml:"gcp,omitempty"`
}

// GCP describes the infra state related to GCP.
Expand Down

0 comments on commit dd096a3

Please sign in to comment.