From 1d7023e3b73740edcb0537ae17f2726045195752 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 14 May 2019 12:00:09 +0200 Subject: [PATCH] Rename controller to workload in `fluxctl release` Leftover from #1777 --- cmd/fluxctl/release_cmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fluxctl/release_cmd.go b/cmd/fluxctl/release_cmd.go index 05b565b59..4be590747 100644 --- a/cmd/fluxctl/release_cmd.go +++ b/cmd/fluxctl/release_cmd.go @@ -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", @@ -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 :/") - 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)")