Skip to content

Commit 55c2984

Browse files
committed
Remove NodeSwap from feature gates
NodeSwap has been removed from the openshift API, so remove it from the installer feature gates accordingly. Signed-off-by: Fangge Jin <[email protected]>
1 parent 64988ba commit 55c2984

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

pkg/types/defaults/validation/featuregates.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,5 @@ func GatedFeatures(c *types.InstallConfig) []featuregates.GatedInstallConfigFeat
3535
}(),
3636
Field: field.NewPath("compute", "diskSetup"),
3737
},
38-
{
39-
FeatureGateName: features.FeatureGateNodeSwap,
40-
Condition: func() bool {
41-
computeMachinePool := c.Compute
42-
for _, compute := range computeMachinePool {
43-
for _, ds := range compute.DiskSetup {
44-
if ds.Type == types.Swap {
45-
return true
46-
}
47-
}
48-
}
49-
return false
50-
}(),
51-
Field: field.NewPath("compute", "diskSetup"),
52-
},
53-
{
54-
FeatureGateName: features.FeatureGateNodeSwap,
55-
Condition: func() bool {
56-
for _, ds := range c.ControlPlane.DiskSetup {
57-
if ds.Type == types.Swap {
58-
return true
59-
}
60-
}
61-
return false
62-
}(),
63-
Field: field.NewPath("controlPlane", "diskSetup"),
64-
},
6538
}
6639
}

0 commit comments

Comments
 (0)