diff --git a/cli/internal/cmd/configgenerate.go b/cli/internal/cmd/configgenerate.go index a4a6f88de..a7f009dd8 100644 --- a/cli/internal/cmd/configgenerate.go +++ b/cli/internal/cmd/configgenerate.go @@ -107,6 +107,7 @@ func (cg *configGenerateCmd) configGenerate(cmd *cobra.Command, fileHandler file return fmt.Errorf("creating config: %w", err) } conf.KubernetesVersion = cg.flags.k8sVersion + conf.Tags = cg.flags.tags cg.log.Debug("Writing YAML data to configuration file") if err := fileHandler.WriteYAML(constants.ConfigFilename, conf, file.OptMkdirAll); err != nil { return fmt.Errorf("writing config file: %w", err) diff --git a/internal/config/config.go b/internal/config/config.go index c3ea6b34d..93571a3a2 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -73,6 +73,9 @@ type Config struct { // description: | // Microservice version to be installed into the cluster. Defaults to the version of the CLI. MicroserviceVersion semver.Semver `yaml:"microserviceVersion" validate:"required"` + // description : | + // Custom tags to be applied to created cloud resources. + Tags cloudprovider.Tags `yaml:"tags" validate:"omitempty"` // description: | // DON'T USE IN PRODUCTION: enable debug mode and use debug images. DebugCluster *bool `yaml:"debugCluster" validate:"required"`