From f7cd7bc7ae3fcec35fa208e0e68adc77e140ba99 Mon Sep 17 00:00:00 2001 From: Drew Hudson-Viles Date: Thu, 5 Sep 2024 16:50:32 +0100 Subject: [PATCH] deprecating one more flag --- pkg/util/flags/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/flags/build.go b/pkg/util/flags/build.go index 8414502..27cfffd 100644 --- a/pkg/util/flags/build.go +++ b/pkg/util/flags/build.go @@ -108,7 +108,7 @@ func (o *BuildOptions) SetOptionsFromViper() { func (o *BuildOptions) AddFlags(cmd *cobra.Command, imageBuilderRepo string) { // Build flags - BoolVarWithViper(cmd, &o.Verbose, viperBuildPrefix, "verbose", false, "Enable verbose output to see the information from packer. Not turning this on will mean the process appears to hang while the image build happens") + BoolVarWithViper(cmd, &o.Verbose, viperBuildPrefix, "verbose", false, "--DEPRECATED-- Enable verbose output to see the information from packer. Not turning this on will mean the process appears to hang while the image build happens") StringVarWithViper(cmd, &o.BuildOS, viperBuildPrefix, "build-os", "ubuntu-2204", "--DEPRECATED-- USE THE CONFIG FILE. This is the target os to build. Valid values are currently: ubuntu-2004 and ubuntu-2204") StringVarWithViper(cmd, &o.ImagePrefix, viperBuildPrefix, "image-prefix", "kube", "--DEPRECATED-- USE THE CONFIG FILE. This will prefix the image with the value provided. Defaults to 'kube' producing an image name of kube-yymmdd-xxxxxxxx") StringVarWithViper(cmd, &o.ImageRepo, viperBuildPrefix, "image-repo", strings.Join([]string{imageBuilderRepo, "git"}, "."), "--DEPRECATED-- USE THE CONFIG FILE. The imageRepo from which the image builder should be deployed")