Created
March 13, 2019 00:17
-
-
Save eparis/67e459afa0df4741093756d6301e7050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/cmd/openshift-install/create.go b/cmd/openshift-install/create.go | |
index 4d53d47e4..700e9ca69 100644 | |
--- a/cmd/openshift-install/create.go | |
+++ b/cmd/openshift-install/create.go | |
@@ -31,6 +31,7 @@ import ( | |
assetstore "github.com/openshift/installer/pkg/asset/store" | |
targetassets "github.com/openshift/installer/pkg/asset/targets" | |
destroybootstrap "github.com/openshift/installer/pkg/destroy/bootstrap" | |
+ "github.com/openshift/installer/pkg/types" | |
cov1helpers "github.com/openshift/library-go/pkg/config/clusteroperator/v1helpers" | |
) | |
@@ -185,6 +186,11 @@ func runTargetCmd(targets ...asset.WritableAsset) func(cmd *cobra.Command, args | |
cleanup := setupFileHook(rootOpts.dir) | |
defer cleanup() | |
+ if cmd.Name() == "cluster" { | |
+ types.PlatformNames = types.PlatformNames[:len(types.PlatformNames)-1] | |
+ types.HiddenPlatformNames = append(types.HiddenPlatformNames, "vmware") | |
+ } | |
+ | |
err := runner(rootOpts.dir) | |
if err != nil { | |
logrus.Fatal(err) | |
diff --git a/pkg/types/installconfig.go b/pkg/types/installconfig.go | |
index f8c5e2b27..e274b99e4 100644 | |
--- a/pkg/types/installconfig.go | |
+++ b/pkg/types/installconfig.go | |
@@ -24,6 +24,7 @@ var ( | |
// platforms presented to the user in the interactive wizard. | |
PlatformNames = []string{ | |
aws.Name, | |
+ "vmware", | |
} | |
// HiddenPlatformNames is a slice with all the | |
// hidden-but-supported platform names. This list isn't presented |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment