Skip to content

Commit a7bffdf

Browse files
committed
FeatureGates is no longer a pointer to a map[string]bool
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 7d93f0b commit a7bffdf

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

apix/config/v1alpha1/endpointpickerconfig_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type EndpointPickerConfig struct {
4343
// +optional
4444
// FeatureGates is a set of flags that enable various experimental features with the EPP.
4545
// If omitted non of these experimental features will be enabled.
46-
FeatureGates *FeatureGates `json:"featureGates,omitempty"`
46+
FeatureGates FeatureGates `json:"featureGates,omitempty"`
4747

4848
// +optional
4949
// SaturationDetector when present specifies the configuration of the
@@ -134,13 +134,13 @@ func (sp SchedulingPlugin) String() string {
134134
// FeatureGates is a set of flags that enable various experimental features with the EPP
135135
type FeatureGates map[string]bool
136136

137-
func (fg *FeatureGates) String() string {
137+
func (fg FeatureGates) String() string {
138138
if fg == nil {
139139
return "{}"
140140
}
141141

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

apix/config/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)