cli: omitempty infrastructure fields (#2392)

This commit is contained in:
3u13r 2023-09-28 18:39:52 +02:00 committed by GitHub
parent 36c8cf2fd8
commit c74a2e98df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.