Skip to content

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

Open
@bruno-villa

Description

@bruno-villa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions