Skip to content

StringMapString arguments not always accepted as JSON in  #19961

@gandro

Description

@gandro

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliImpacts the command line interface of any command in the repository.kind/bugThis is a bug in the Cilium logic.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions