Skip to content

Commit

Permalink
Merge pull request #961 from replicatedhq/divolgin/upgrades
Browse files Browse the repository at this point in the history
kots admin-console upgrade command for airgapped installs
  • Loading branch information
divolgin committed Aug 18, 2020
2 parents 60641da + cf3a077 commit b6725d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/kots/cli/admin-console-upgrade.go
Expand Up @@ -92,11 +92,12 @@ func AdminConsoleUpgradeCmd() *cobra.Command {
cmd.Flags().Bool("force-upgrade-kurl", false, "set to force upgrade even if this is a kurl cluster")
cmd.Flags().String("kotsadm-tag", "", "set to override the tag of kotsadm. this may create an incompatible deployment because the version of kots and kotsadm are designed to work together")
cmd.Flags().String("kotsadm-registry", "", "set to override the registry of kotsadm image. this may create an incompatible deployment because the version of kots and kotsadm are designed to work together")
cmd.Flags().String("registry-username", "", "user name to use to authenticate with the registry")
cmd.Flags().String("registry-password", "", "password to use to authenticate with the registry")
cmd.Flags().String("kotsadm-namespace", "", "set to override the namespace of kotsadm image. this may create an incompatible deployment because the version of kots and kotsadm are designed to work together")
cmd.Flags().String("wait-duration", "2m", "timeout out to be used while waiting for individual components to be ready. must be in Go duration format (eg: 10s, 2m)")
cmd.Flags().MarkHidden("force-upgrade-kurl")
cmd.Flags().MarkHidden("kotsadm-tag")
cmd.Flags().MarkHidden("kotsadm-registry")
cmd.Flags().MarkHidden("kotsadm-namespace")

return cmd
Expand Down
2 changes: 2 additions & 0 deletions pkg/kotsadm/main.go
Expand Up @@ -119,7 +119,9 @@ func Upgrade(upgradeOptions types.UpgradeOptions) error {
return errors.Wrap(err, "failed to read deploy options")
}

// these options are not stored in cluster (yet)
deployOptions.Timeout = upgradeOptions.Timeout
deployOptions.KotsadmOptions = upgradeOptions.KotsadmOptions

if err := ensureKotsadm(*deployOptions, clientset, log); err != nil {
return errors.Wrap(err, "failed to upgrade admin console")
Expand Down

0 comments on commit b6725d4

Please sign in to comment.