From 1ed5ad42ceb7e081e2e9ef57c5895d2e4c08694f Mon Sep 17 00:00:00 2001 From: Praveen Rewar <8457124+praveenrewar@users.noreply.github.com> Date: Tue, 31 May 2022 12:08:46 +0530 Subject: [PATCH] Update flag descriptions to use 'upgrade' instead of 'install' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Stefan Büringer <4662360+sbueringer@users.noreply.github.com> --- cmd/clusterctl/client/upgrade.go | 4 ++-- cmd/clusterctl/cmd/upgrade_apply.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/clusterctl/client/upgrade.go b/cmd/clusterctl/client/upgrade.go index dffad22285aa..eb224da11d70 100644 --- a/cmd/clusterctl/client/upgrade.go +++ b/cmd/clusterctl/client/upgrade.go @@ -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 } diff --git a/cmd/clusterctl/cmd/upgrade_apply.go b/cmd/clusterctl/cmd/upgrade_apply.go index dbeb4f1d5145..ba569e9b04fa 100644 --- a/cmd/clusterctl/cmd/upgrade_apply.go +++ b/cmd/clusterctl/cmd/upgrade_apply.go @@ -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 {