From 70e3d3739067a49eb7497b6f55df9890063f4247 Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Fri, 13 Dec 2024 15:14:56 +0100 Subject: [PATCH] Rename dev-mode to dev-password Signed-off-by: cmoulliard --- api/v1alpha1/localbuild_types.go | 2 +- pkg/cmd/create/root.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/v1alpha1/localbuild_types.go b/api/v1alpha1/localbuild_types.go index 074e9afb..1f9035f2 100644 --- a/api/v1alpha1/localbuild_types.go +++ b/api/v1alpha1/localbuild_types.go @@ -53,7 +53,7 @@ type BuildCustomizationSpec struct { Port string `json:"port,omitempty"` UsePathRouting bool `json:"usePathRouting,omitempty"` SelfSignedCert string `json:"selfSignedCert,omitempty"` - StaticPassword bool `json:"staticPasswords,omitempty"` + StaticPassword bool `json:"staticPassword,omitempty"` } type LocalbuildSpec struct { diff --git a/pkg/cmd/create/root.go b/pkg/cmd/create/root.go index 06d75995..08f05cef 100644 --- a/pkg/cmd/create/root.go +++ b/pkg/cmd/create/root.go @@ -20,7 +20,7 @@ import ( const ( recreateClusterUsage = "Delete cluster first if it already exists." buildNameUsage = "Name for build (Prefix for kind cluster name, pod names, etc)." - devModeUsage = "Set the password \"developer\" for the admin user of the applications: argocd & gitea." + devPasswordUsage = "Set the password \"developer\" for the admin user of the applications: argocd & gitea." kubeVersionUsage = "Version of the kind kubernetes cluster to create." extraPortsMappingUsage = "List of extra ports to expose on the docker container and kubernetes cluster as nodePort " + "(e.g. \"22:32222,9090:39090,etc\")." @@ -41,7 +41,7 @@ var ( // Flags recreateCluster bool buildName string - devMode bool + devPassword bool kubeVersion string extraPortsMapping string kindConfigPath string @@ -69,7 +69,7 @@ func init() { CreateCmd.PersistentFlags().StringVar(&buildName, "build-name", "localdev", buildNameUsage) CreateCmd.PersistentFlags().MarkDeprecated("build-name", "use --name instead.") CreateCmd.PersistentFlags().StringVar(&buildName, "name", "localdev", buildNameUsage) - CreateCmd.PersistentFlags().BoolVar(&devMode, "dev-mode", false, devModeUsage) + CreateCmd.PersistentFlags().BoolVar(&devPassword, "dev-password", false, devPasswordUsage) CreateCmd.PersistentFlags().StringVar(&kubeVersion, "kube-version", "v1.30.3", kubeVersionUsage) CreateCmd.PersistentFlags().StringVar(&extraPortsMapping, "extra-ports", "", extraPortsMappingUsage) CreateCmd.PersistentFlags().StringVar(&kindConfigPath, "kind-config", "", kindConfigPathUsage) @@ -146,7 +146,7 @@ func create(cmd *cobra.Command, args []string) error { IngressHost: ingressHost, Port: port, UsePathRouting: pathRouting, - StaticPassword: devMode, + StaticPassword: devPassword, }, CustomPackageDirs: absDirPaths,