k3s/pkg/util/gates.go

10 lines
223 B
Go
Raw Permalink Normal View History

package util
// AddFeatureGate correctly appends a feature gate key pair to the feature gates CLI switch.
func AddFeatureGate(current, new string) string {
if current == "" {
return new
}
return current + "," + new
}