Skip to content

Commit 99b9ef1

Browse files
Merge pull request #9560 from vr4manta/SPLAT-2078
SPLAT-2078: Removed VSphereStaticIPs feature gate
2 parents 513176f + b2320db commit 99b9ef1

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

pkg/types/validation/featuregate_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,11 @@ func TestFeatureGates(t *testing.T) {
6767
installConfig: func() *types.InstallConfig {
6868
c := validInstallConfig()
6969
c.FeatureSet = v1.CustomNoUpgrade
70-
c.FeatureGates = []string{"VSphereStaticIPs=true"}
7170
c.VSphere = validVSpherePlatform()
7271
c.VSphere.Hosts = []*vsphere.Host{{Role: "test"}}
7372
return c
7473
}(),
7574
},
76-
{
77-
name: "vSphere hosts is not allowed with custom Feature Gate disabled",
78-
installConfig: func() *types.InstallConfig {
79-
c := validInstallConfig()
80-
c.FeatureSet = v1.CustomNoUpgrade
81-
c.FeatureGates = []string{"VSphereStaticIPs=false"}
82-
c.VSphere = validVSpherePlatform()
83-
c.VSphere.Hosts = []*vsphere.Host{{Role: "test"}}
84-
return c
85-
}(),
86-
expected: `^platform.vsphere.hosts: Forbidden: this field is protected by the VSphereStaticIPs feature gate which must be enabled through either the TechPreviewNoUpgrade or CustomNoUpgrade feature set$`,
87-
},
8875
{
8976
name: "vSphere one vcenter is allowed with default Feature Gates",
9077
installConfig: func() *types.InstallConfig {

pkg/types/vsphere/validation/featuregates.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ func GatedFeatures(c *types.InstallConfig) []featuregates.GatedInstallConfigFeat
2727
computeDefs := c.Compute
2828

2929
return []featuregates.GatedInstallConfigFeature{
30-
{
31-
FeatureGateName: features.FeatureGateVSphereStaticIPs,
32-
Condition: len(v.Hosts) > 0,
33-
Field: field.NewPath("platform", "vsphere", "hosts"),
34-
},
3530
{
3631
FeatureGateName: features.FeatureGateVSphereMultiNetworks,
3732
Condition: multiNetworksFound,

0 commit comments

Comments
 (0)