Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm umbrella chart - dependencies with authentication #21463

Open
3 tasks done
jonahbohlmann opened this issue Jan 12, 2025 · 0 comments
Open
3 tasks done

helm umbrella chart - dependencies with authentication #21463

jonahbohlmann opened this issue Jan 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jonahbohlmann
Copy link

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

I configured an application containing a Git source with an umbrella Helm chart that has an OCI dependency from DockerHub. Despite adding the credentials for our DockerHub Pro account to the ArgoCD repository configuration, ArgoCD does not use them, leading to pull rate limit errors.

To Reproduce

  1. Create a simple ArgoCD Application containing a git source
  2. Create an umbrella chart with a docker oci helm chart dependency. In my case:
       - name: mongodb
         version: "16.4.0"
         repository: "oci://registry-1.docker.io/bitnamicharts"
    
  3. Add the docker OCI repository to ArgoCD
  4. Start a lot of syncs

Expected behavior
The repository from ArgoCD should also be used in helm dependencies.

My code

Repository

apiVersion: v1
kind: Secret
metadata:
  name: dockerhub-bitnamicharts
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repository
stringData:
  name: dockerhub-bitnamicharts
  type: helm
  url: registry-1.docker.io/bitnamicharts
  username: xxx
  password: xxx
  enableOCI: "true"

Application

{{- $service := .Values.services.mongodb }}
{{- if $service.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: mongodb
  namespace: argocd
spec:
  project: services
  destination:
    server: "https://kubernetes.default.svc"
    namespace: services
  syncPolicy:
    syncOptions:
    - CreateNamespace=true
  sources:
    - repoURL: https://git.xxx.de/xxx/portal/argocd-deployment.git
      path: charts/services/mongodb/
      targetRevision: {{ include "xxx.appTargetRevision" . }}
      helm:
        releaseName: mongodb
        passCredentials: true
        valueFiles:
          - /vars/base/services/mongodb.yaml
          - /vars/{{ .Values.bootstrapEnvironment }}/services/mongodb.yaml
{{ end }}

Chart.yaml

[...]
dependencies:
- name: mongodb
  version: "16.4.0"
  repository: "oci://registry-1.docker.io/bitnamicharts"

Version

argocd: v2.13.2+dc43124
  BuildDate: 2024-12-11T18:37:15Z
  GitCommit: dc43124058130db9a747d141d86d7c2f4aac7bf9
  GitTreeState: clean
  GoVersion: go1.23.1
  Compiler: gc
  Platform: linux/amd64

Logs

N/A

@jonahbohlmann jonahbohlmann added the bug Something isn't working label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant