Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-76328

Helm Chart Repository form lists CA/TLS secrets from wrong namespace

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 4.22
    • 4.18, 4.19, 4.20, 4.21
    • Helm
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • 3
    • Important
    • None
    • None
    • Helm Sprint 9
    • 1
    • Proposed
    • Bug Fix
    • Hide
      *Cause*: Helm repository form dropdowns hardcoded to openshift-config namespace.
      *Consequence*: Users couldn't select ConfigMaps/Secrets from their project namespace for Helm repositories.
      *Fix*: Made namespace selection dynamic in Helm repository forms.
      *Result*: Dropdowns now show resources from the correct namespace based on Helm repository scope.
      Show
      *Cause*: Helm repository form dropdowns hardcoded to openshift-config namespace. *Consequence*: Users couldn't select ConfigMaps/Secrets from their project namespace for Helm repositories. *Fix*: Made namespace selection dynamic in Helm repository forms. *Result*: Dropdowns now show resources from the correct namespace based on Helm repository scope.
    • None
    • None
    • None
    • None

      Description of problem:

      
      When creating a ProjectHelmChartRepository (namespace-scoped), the CA Certificate and TLS Client Config dropdowns incorrectly list ConfigMaps/Secrets from the hardcoded openshift-config namespace instead of the repository's namespace. This prevents users from selecting resources they created in their project namespace.
      The backend correctly uses the repository's namespace, but the UI has hardcoded 'openshift-config'.
      
          

      Version-Release number of selected component (if applicable):

          

      How reproducible:

      Always
          

      Steps to Reproduce:

       1. Create a ConfigMap with CA certificate in a project namespace:
         oc create configmap helm-repo-ca --from-literal=ca-bundle.crt="test" -n helm-test
      2. Navigate to: Helm → Helm Repositories → Create ProjectHelmChartRepository
      3. Select namespace: helm-test
      4. Open "Show advanced options"
      5. Click the CA Certificate dropdown
      6. Observe: helm-repo-ca ConfigMap is NOT listed (only shows ConfigMaps from openshift-config)
          

      Actual results:

      CA Certificate and TLS Client Config dropdowns only show resources from openshift-config namespace, regardless of which namespace the ProjectHelmChartRepository is being created in.
          

      Expected results:

      For ProjectHelmChartRepository (namespace-scoped):
      - CA Certificate dropdown should list ConfigMaps from the repository's namespace
      - TLS Client Config dropdown should list Secrets from the repository's namespace
      
      For HelmChartRepository (cluster-scoped):
      - Both dropdowns should list from openshift-config (current behavior is correct)
          

      Additional info:

      Affected file: frontend/packages/helm-plugin/src/components/forms/HelmChartRepository/CreateHelmChartRepositoryFormEditor.tsx
          

              rh-ee-mszuc Martin Szuc
              rh-ee-mszuc Martin Szuc
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: