mirror of https://github.com/k3s-io/k3s
10 lines
223 B
Go
10 lines
223 B
Go
|
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
|
||
|
}
|