Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Rename controller to workload in fluxctl release
Browse files Browse the repository at this point in the history
Leftover from #1777
  • Loading branch information
2opremio committed May 14, 2019
1 parent c4fadea commit 1d7023e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/fluxctl/release_cmd.go
Expand Up @@ -42,7 +42,7 @@ func newWorkloadRelease(parent *rootOpts) *workloadReleaseOpts {
func (opts *workloadReleaseOpts) Command() *cobra.Command {
cmd := &cobra.Command{
Use: "release",
Short: "Release a new version of a controller.",
Short: "Release a new version of a workload.",
Example: makeExample(
"fluxctl release -n default --workload=deployment/foo --update-image=library/hello:v2",
"fluxctl release --all --update-image=library/hello:v2",
Expand All @@ -56,10 +56,10 @@ func (opts *workloadReleaseOpts) Command() *cobra.Command {
cmd.Flags().StringVarP(&opts.namespace, "namespace", "n", "default", "Workload namespace")
// Note: we cannot define a shorthand for --workload since it clashes with the shorthand of --watch
cmd.Flags().StringSliceVarP(&opts.workloads, "workload", "", []string{}, "List of workloads to release <namespace>:<kind>/<name>")
cmd.Flags().BoolVar(&opts.allWorkloads, "all", false, "Release all controllers")
cmd.Flags().BoolVar(&opts.allWorkloads, "all", false, "Release all workloads")
cmd.Flags().StringVarP(&opts.image, "update-image", "i", "", "Update a specific image")
cmd.Flags().BoolVar(&opts.allImages, "update-all-images", false, "Update all images to latest versions")
cmd.Flags().StringSliceVar(&opts.exclude, "exclude", []string{}, "List of controllers to exclude")
cmd.Flags().StringSliceVar(&opts.exclude, "exclude", []string{}, "List of workloads to exclude")
cmd.Flags().BoolVar(&opts.dryRun, "dry-run", false, "Do not release anything; just report back what would have been done")
cmd.Flags().BoolVar(&opts.interactive, "interactive", false, "Select interactively which containers to update")
cmd.Flags().BoolVarP(&opts.force, "force", "f", false, "Disregard locks and container image filters (has no effect when used with --all or --update-all-images)")
Expand Down

0 comments on commit 1d7023e

Please sign in to comment.