diff --git a/cmd/porter/installations.go b/cmd/porter/installations.go index 30e6586d8..cab97934e 100644 --- a/cmd/porter/installations.go +++ b/cmd/porter/installations.go @@ -304,6 +304,8 @@ The docker driver runs the bundle container using the local Docker host. To use "Namespace of the specified installation. Defaults to the global namespace.") f.StringVar(&opts.Version, "version", "", "Version to which the installation should be upgraded. This represents the version of the bundle, which assumes the convention of setting the bundle tag to its version.") + f.BoolVar(&opts.ForceUpgrade, "force-upgrade", false, + "Force the upgrade to run even if the current installation is marked as failed.") addBundleActionFlags(f, opts) // Allow configuring the --driver flag with runtime-driver, to avoid conflicts with other commands diff --git a/docs/content/docs/references/cli/installations_upgrade.md b/docs/content/docs/references/cli/installations_upgrade.md index 3ffe83f57..eb7d3d8e3 100644 --- a/docs/content/docs/references/cli/installations_upgrade.md +++ b/docs/content/docs/references/cli/installations_upgrade.md @@ -50,6 +50,7 @@ porter installations upgrade [INSTALLATION] [flags] -d, --driver string Specify a driver to use. Allowed values: docker, debug (default "docker") -f, --file porter.yaml Path to the Porter manifest. Defaults to porter.yaml in the current directory. --force Force a fresh pull of the bundle + --force-upgrade Force the upgrade to run even if the current installation is marked as failed. -h, --help help for upgrade --insecure-registry Don't require TLS for the registry --mount-host-volume stringArray Mount a host volume into the bundle. Format is :[: