Skip to content

Setting annotations for Service Account in Helm chart fails when using boolean #7557

@imilanovic

Description

@imilanovic

Describe the bug:

Setting annotations for Service Account in Helm chart fails when using boolean.
Example:

eks.amazonaws.com/sts-regional-endpoints: true

This fails in ArgoCD with error

unable to decode "/dev/shm/1474109075": json: cannot unmarshal bool into Go struct field ObjectMeta.metadata.annotations of type string

Expected behaviour:
True should be rendered with quotes

eks.amazonaws.com/sts-regional-endpoints: "true"

Steps to reproduce the bug:

Create ArgoCD with cert-manager helm chart and set this parameters:

parameters:
  - name: serviceAccount.annotations.eks\.amazonaws\.com/role-arn
    value: arn-of-the-role
  - name: serviceAccount.annotations.eks\.amazonaws\.com/sts-regional-endpoints
    value: "true"
    forceString: true

or

helm:
  valuesObject:
    crds:
      enabled: true
    serviceAccount:
      annotations:
        eks.amazonaws.com/role-arn: "arn:aws:iam::11111111111:role/arn-of-the-role"
        eks.amazonaws.com/sts-regional-endpoints: "true"

Anything else we need to know?:

Environment details:

  • Kubernetes version: 1.31
  • Cloud-provider/provisioner:
  • cert-manager version: 1.17.0
  • Install method: Helm with ArgoCD

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions