Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-7548

GitOps fails to pull from Helm private repository through kustomize

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • GitOps
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of Problem

      • Facing access issue while using kustomize to access private helm repo in gitops. The ArgoCD application refers a Git repository on a branch/path having a kustomization.yaml and Kustomization yaml refers private helm nexus repo. 
      • It fails with "Not Authorized" error even though repository credentials has been provided.

      Additional Info

      401 Unauthorized : unable to run: 'helm pull

      Problem Reproduction

      • Create a Argocd app pointing to a repo which has kustomisation.yaml.

      apiVersion: kustomize.config.k8s.io/v1beta1
      kind: Kustomization

      helmCharts:

      • name: test
        version: 1.0.0
        releaseName: test-private-repo
        includeCRDs: false
        valuesInline:
        dataKey: overriden through kustomize
        repo: ${test-privare-repo-url} * Helm repo credential are configured via repository credentials.

      apiVersion: v1
      kind: Secret
      metadata:
      name: test-credentials
      annotations:
      managed-by: argocd.argoproj.io
      labels:
      argocd.argoproj.io/secret-type: repository
      stringData:
      type: 'helm'
      url: '${test-privare-repo-url}'
      username: 'xxx'
      password: 'xxx'

      Reproducibility

      • Always

      Prerequisites/Environment

      • ArgoCD using kustomize to load helm chart

      Expected Results

      • Helm chart should be pulled successfully.

      Actual Results

      • It fails with unauthorised error.
      •  

        1. Screenshot From 2025-03-04 13-09-21.png
          107 kB
          Sarfaraz Ahamad
        2. Screenshot From 2025-03-04 13-10-53.png
          123 kB
          Sarfaraz Ahamad
        3. Screenshot From 2025-03-04 13-10-53-1.png
          123 kB
          Sarfaraz Ahamad
        4. secret.yaml
          0.3 kB
          Sarfaraz Ahamad

              halawren@redhat.com Harriet Lawrence
              rhn-support-sudnair Sudhish Nair
              None
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                None
                None