-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
Product / Portfolio Work
-
None
-
False
-
-
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.