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

Rename controller to workload in fluxctl release #2048

Merged
merged 1 commit into from
May 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/fluxctl/release_cmd.go
Original file line number Diff line number Diff line change
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