github.com/openshift/installer@v1.4.17/pkg/infrastructure/gcp/clusterapi/labels.go (about) 1 package clusterapi 2 3 import ( 4 "fmt" 5 6 "github.com/openshift/installer/pkg/asset/installconfig" 7 gcpconsts "github.com/openshift/installer/pkg/constants/gcp" 8 ) 9 10 func mergeLabels(ic *installconfig.InstallConfig, clusterID string) map[string]string { 11 labels := map[string]string{} 12 labels[fmt.Sprintf(gcpconsts.ClusterIDLabelFmt, clusterID)] = "owned" 13 for _, label := range ic.Config.GCP.UserLabels { 14 labels[label.Key] = label.Value 15 } 16 17 return labels 18 }