Skip to content

Commit c0d0721

Browse files
committed
pkg/types: remove nodeswap featuregate
Featuregate was removed from openshift/api in openshift/api#2494
1 parent 47812b1 commit c0d0721

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)