Skip to content

Helm Chart: extraArgs in map form do not work for args without values #6261

@jabbrwcky

Description

@jabbrwcky

What happened:

I tried to configure the commandline argument --aws-zone-match-parent for the AWS provider using the map form of extraArgs:, which did not work with using the arg key with a null value or a value of true

aws-zone-match-parent: true got rendered as --aws-zone-match-parent=true which caused an fatal error on startup

What you expected to happen:

the map form of extraArgs should handle CLI arguments without parameters as well as the list version.

Ideally the map version should support either flag: null (just key present) or flag: true for CLI args without an explicit value.

How to reproduce it (as minimally and precisely as possible):

extraArgs:
  domain-filter:
    - management.example.com
    - management.ext.example.com
  aws-zone-match-parent:

does not work, neither does:

extraArgs:
  domain-filter:
    - management.example.com
    - management.ext.example.com
  aws-zone-match-parent: true

This works:

extraArgs:
  - --domain-filter=management.example.com
  - --domain-filter=management.ext.example.com
  - --aws-zone-match-parent

(but does not support merging of values files)

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): 0.20.0
  • DNS provider: AWS
  • Others: Chart v1.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions