Skip to content

Commit

Permalink
--kotsadm-namespace is optional, so don't fail when it's not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin committed Aug 13, 2021
1 parent fba8a7d commit 5606d7e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions cmd/kots/cli/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,6 @@ func getRegistryConfig(v *viper.Viper) (*kotsadmtypes.KotsadmOptions, error) {
if registryNamespace == "" && license != nil {
registryNamespace = license.Spec.AppSlug
}
if registryNamespace == "" {
return nil, errors.New("--kotsadm-namespace is required")
}
}
return &kotsadmtypes.KotsadmOptions{
OverrideVersion: v.GetString("kotsadm-tag"),
Expand Down
2 changes: 0 additions & 2 deletions pkg/upstream/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ func Upgrade(appSlug string, options UpgradeOptions) (*UpgradeResponse, error) {
if registryNamespace == "" {
if options.IsKurl {
registryNamespace = appSlug
} else {
return nil, errors.New("--kotsadm-namespace is required")
}
}

Expand Down

0 comments on commit 5606d7e

Please sign in to comment.