Skip to content

Commit efdcd1b

Browse files
authored
[Bugfix] Creating features' configmap (#1115)
1 parent 7e1fdfd commit efdcd1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ func ensureFeaturesConfigMap(ctx context.Context, client typedCore.ConfigMapInte
567567
Name: features.ConfigMapName(),
568568
Namespace: cfg.Namespace,
569569
},
570-
Data: make(map[string]string),
570+
Data: featuresCM,
571571
}, meta.CreateOptions{}); err != nil {
572572
return err
573573
}

pkg/deployment/features/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func Supported(f Feature, v driver.Version, enterprise bool) bool {
161161
func GetFeatureMap() map[string]bool {
162162
args := make(map[string]bool, len(features))
163163
for _, f := range features {
164-
args[GetFeatureArgName(f.Name())] = f.Enabled()
164+
args[util.NormalizeEnv(GetFeatureArgName(f.Name()))] = f.Enabled()
165165
}
166166

167167
return args

0 commit comments

Comments
 (0)