Skip to content

Commit

Permalink
Update flag descriptions to use 'upgrade' instead of 'install'
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Büringer <[email protected]>
  • Loading branch information
praveenrewar and sbueringer authored May 31, 2022
1 parent 1e789c4 commit 1ed5ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/clusterctl/client/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ type ApplyUpgradeOptions struct {
// InfrastructureProviders instance and versions (e.g. capa-system/aws:v0.5.0) to upgrade to. This field can be used as alternative to Contract.
InfrastructureProviders []string

// WaitProviders instructs the upgrade apply command to wait till the providers are installed.
// WaitProviders instructs the upgrade apply command to wait till the providers are successfully upgraded.
WaitProviders bool

// WaitProviderTimeout sets the timeout per provider wait installation
// WaitProviderTimeout sets the timeout per provider upgrade.
WaitProviderTimeout time.Duration
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/clusterctl/cmd/upgrade_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ func init() {
upgradeApplyCmd.Flags().StringSliceVarP(&ua.controlPlaneProviders, "control-plane", "c", nil,
"ControlPlane providers instance and versions (e.g. capi-kubeadm-control-plane-system/kubeadm:v0.3.0) to upgrade to. This flag can be used as alternative to --contract.")
upgradeApplyCmd.Flags().BoolVar(&ua.waitProviders, "wait-providers", false,
"Wait for providers to be installed.")
"Wait for providers to be upgraded.")
upgradeApplyCmd.Flags().IntVar(&ua.waitProviderTimeout, "wait-provider-timeout", 5*60,
"Wait timeout per provider installation in seconds. This value is ignored if --wait-providers is false")
"Wait timeout per provider upgrade in seconds. This value is ignored if --wait-providers is false")
}

func runUpgradeApply() error {
Expand Down

0 comments on commit 1ed5ad4

Please sign in to comment.