Skip to content

Commit

Permalink
template/app: Update deprecated flag name. (#897)
Browse files Browse the repository at this point in the history
* template/app: Update deprecated flag name.

* Update CHANGELOG.md
  • Loading branch information
Gacko committed Sep 26, 2022
1 parent c16a43d commit e7366c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

## [Unreleased]

### Fixed

- `kubectl gs template app` help text: Replace deprecated `--cluster` flag by new `--cluster-name`.

## [2.23.0] - 2022-09-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion cmd/template/app/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (f *flag) Init(cmd *cobra.Command) {
cmd.Flags().StringVar(&f.ClusterName, flagClusterName, "", "Name of the cluster the app will be deployed to.")
cmd.Flags().StringVar(&f.Organization, flagOrganization, "", "Workload cluster organization.")
cmd.Flags().BoolVar(&f.DefaultingEnabled, flagDefaultingEnabled, true, "Don't template fields that will be defaulted.")
cmd.Flags().BoolVar(&f.InCluster, flagInCluster, false, fmt.Sprintf("Deploy the app in the current management cluster rather than in a workload cluster. If this is set, --%s will be ignored.", flagCluster))
cmd.Flags().BoolVar(&f.InCluster, flagInCluster, false, fmt.Sprintf("Deploy the app in the current management cluster rather than in a workload cluster. If this is set, --%s will be ignored.", flagClusterName))
cmd.Flags().StringVar(&f.flagUserConfigMap, flagUserConfigMap, "", "Path to the user values configmap YAML file.")
cmd.Flags().StringVar(&f.flagUserSecret, flagUserSecret, "", "Path to the user secrets YAML file.")
cmd.Flags().StringVar(&f.Version, flagVersion, "", "App version to be installed.")
Expand Down

0 comments on commit e7366c7

Please sign in to comment.