Skip to content

Commit 675ba22

Browse files
committed
Changed featureFlags to be an array of strings, similar to K8S
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 1ae9119 commit 675ba22

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

apix/config/v1alpha1/endpointpickerconfig_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ func (sp SchedulingPlugin) String() string {
132132
}
133133

134134
// FeatureGates is a set of flags that enable various experimental features with the EPP
135-
type FeatureGates map[string]bool
135+
type FeatureGates []string
136136

137137
func (fg FeatureGates) String() string {
138138
if fg == nil {
139139
return "{}"
140140
}
141141

142142
result := ""
143-
for key, value := range fg {
144-
result += fmt.Sprintf("%s:%v,", key, value)
143+
for _, gate := range fg {
144+
result += gate + ","
145145
}
146146

147147
if len(result) > 0 {

apix/config/v1alpha1/zz_generated.deepcopy.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)