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

ArgoCD app with kustomize helm - helm resources deploy to default namespace #187

Open
bruno-villa opened this issue Jan 20, 2023 · 1 comment

Comments

@bruno-villa
Copy link

This is with ArgoCD v2.4.2 with --enable-helm for the kustomize renderer.

With a kustomization containing a chart, e.g.

helmCharts:
- name: mychart
  version: 1.0.0
  repo: https://my.repo
  releaseName: myrelease
  includeCRDs: false
  valuesInline: {}

resources:
  - myresources.yaml

and an app

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: myapp
  namespace: argocd
spec:
  destination:
    namespace: mynamespace
  ...

the result is that resources in myresources.yaml end up in the mynamespace namespace, but resources from mychart end up in the default namespace.
This can be solved by explicitly adding the namespace specification to the kustomization. However, this reduces the reusability and can be a source of confusion with two places to specify the namespace.
I could not find an existing issue describing this.

@Gatschknoedel
Copy link

Having the same issue, thanks for the workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants