-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
area/cliImpacts the command line interface of any command in the repository.Impacts the command line interface of any command in the repository.kind/bugThis is a bug in the Cilium logic.This is a bug in the Cilium logic.
Description
We have various reports (e.g. #18973 (comment)) that StringMapString arguments cannot be passed as JSON in the cilium
ConfigMap.
Affected flags:
pkg/option/config.go
2771: if m := viper.GetStringMapString(FixedIdentityMapping); len(m) != 0 {
2777: if m := viper.GetStringMapString(KVStoreOpt); len(m) != 0 {
2781: if m := viper.GetStringMapString(LogOpt); len(m) != 0 {
2785: if m := viper.GetStringMapString(APIRateLimitName); len(m) != 0 {
operator/option/config.go
449: if m := viper.GetStringMapString(IPAMSubnetsTags); len(m) != 0 {
453: if m := viper.GetStringMapString(AWSInstanceLimitMapping); len(m) != 0 {
457: if m := viper.GetStringMapString(ENITags); len(m) != 0 {
It's unclear what versions and under what condition JSON is rejected, as other users seem to be able to successfully use the JSON syntax (e.g. here #18973 (comment))
There are two potential workarounds:
- If possible, pass the argument in the more limited
k=v
syntax (which however does have some other limitations, such as e.g. cmd: Allow more complicated patterns in map string type. #19955 ) - Otherwise, try to pass the value directly as a command-line argument
Metadata
Metadata
Assignees
Labels
area/cliImpacts the command line interface of any command in the repository.Impacts the command line interface of any command in the repository.kind/bugThis is a bug in the Cilium logic.This is a bug in the Cilium logic.