Skip to content

Chart installation fails when watchNamespace includes the helm release namespace due to duplicate RoleBindings #744

Description

@mihirbhagwat0

Helm chart fails to install when the watchNamespace parameter contains the same namespace as the Helm release namespace. It tries to create a RoleBinding object for that namespace twice, causing the installation to fail.

Expected Behavior

The Helm chart should create a RoleBinding only once per namespace, even if the release namespace is included in watchNamespace.

Actual Behavior

The chart tries to create two RoleBinding objects for the same namespace, causing the installation to fail.

Image Image

Steps to Reproduce the Problem

  1. Set the Helm release namespace to test
  2. Set the watchNamespace parameter to test
  3. helm install keda kedacore/keda --namespace test --set watchNamespace=test

Specifications

  • KEDA Version: 2.16.1
  • Platform & Version: 2.16.1
  • Kubernetes Version: 1.31.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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