From b3f14ef51d5a8d742cb6fb58a922c30419ca77be Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Thu, 6 Jan 2022 16:42:39 +0000 Subject: [PATCH] Expand example usage text Signed-off-by: James Munnelly --- cmd/ctl/pkg/upgrade/migrateapiversion/command.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/ctl/pkg/upgrade/migrateapiversion/command.go b/cmd/ctl/pkg/upgrade/migrateapiversion/command.go index 0de16d497..282d8e36f 100644 --- a/cmd/ctl/pkg/upgrade/migrateapiversion/command.go +++ b/cmd/ctl/pkg/upgrade/migrateapiversion/command.go @@ -43,8 +43,15 @@ This must be run prior to upgrading to ensure your cluster is ready to upgrade t This command must be run with a cluster running cert-manager v1.0 or greater.`)) example = templates.Examples(i18n.T(build.WithTemplate(` -# Check the cert-manager installation is ready to be upgraded to v1.7 +# Check the cert-manager installation is ready to be upgraded to v1.7 and perform necessary migrations +# to ensure that the kube-apiserver has stored only v1 API versions. {{.BuildName}} upgrade migrate-api-version + +# Force migrations to be run, even if the 'status.storedVersion' field on the CRDs does not contain +# old, deprecated API versions. +# This should only be used if you have manually edited/patched the CRDs already. +# It will force a read and a write of ALL cert-manager resources unconditionally. +{{.BuildName}} upgrade migrate-api-version --skip-stored-version-check `))) )