mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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
|
||
|
}
|