Skip to content

Helm chart 1.1.1 missing leases RBAC permissions (leader election fails) #3757

@chacha-john

Description

@chacha-john

Describe the bug

Installing argocd-image-updater via Helm chart 1.1.1 results in a ClusterRole that does not include permissions for coordination.k8s.io/leases.

Related helm chart

argocd-image-updater

Helm chart version

1.1.1

To Reproduce

  1. Install Argo CD Image Updater using the official Helm chart:

    helm repo add argo https://argoproj.github.io/argo-helm
    helm repo update

    helm install argocd-image-updater argo/argocd-image-updater
    --namespace argocd
    --create-namespace

  2. Verify the created ClusterRole:

kubectl get clusterrole argocd-image-updater -o yaml

  1. Observe that the ClusterRole does NOT include permissions for:

apiGroup: coordination.k8s.io
resource: leases

  1. Observe repeated leader election errors:

leases.coordination.k8s.io "" is forbidden:
User "system:serviceaccount:argocd:argocd-image-updater"
cannot get resource "leases"

Image
  1. Confirm missing permission:

kubectl auth can-i get leases
--as=system:serviceaccount:argocd:argocd-image-updater
-n argocd

Output:
no

Image

Expected behavior

Installing argocd-image-updater using the official Helm chart should create all required RBAC resources automatically, including permissions for leader election.

Specifically, the generated ClusterRole should include permissions for:

  • apiGroup: coordination.k8s.io
  • resource: leases
  • verbs: get, list, watch, create, update, patch

After installation, the controller should successfully acquire a leader lease and run without RBAC errors or restart loops, without requiring any manual patching of ClusterRoles.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions