Make NonRoot & Experimental same
NonRoot should be used for testing.
Remove NonRootExperimental as it is also correct but
we want to be able to disable this feature from tests.
Tests currently manipulate only NonRoot feature gate
@@ -116,8 +116,9 @@ func main() {
GeneratedManifests: make(map[string]string),
}
- if featureGates != nil && strings.Contains(*featureGates, "NonRoot") && !strings.Contains(*featureGates, "NonRootExperimental") {
- *featureGates = *featureGates + ",NonRootExperimental"
+ if featureGates != nil {
+
+ *featureGates = strings.Replace(*featureGates, "NonRootExperimental", "NonRoot", 1)
}
if *processVars {
