You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying the Windmill Helm chart using Kustomize's HelmCharts feature within an Argo CD app of apps pattern, all resources are being created in the ArgoCD namespace instead of the intended namespace specified in the Kustomization file.
Current Setup and Behavior
I have an app of apps setup with ApplicationSet and AppProject:
apiVersion: argoproj.io/v1alpha1kind: ApplicationSetmetadata:
name: toolsnamespace: argocdspec:
generators:
- git:
repoURL: https://github.com/gabrielcosi/homelabrevision: HEADdirectories:
- path: kubernetes/apps/tools/*template:
metadata:
name: "{{ path.basename }}"spec:
project: toolssource:
plugin:
name: kustomize-build-with-helmdestination:
name: in-clusternamespace: argocd # This seems to override the namespace specified in Kustomization
Inside one of the tool directories, I have a Kustomization using HelmCharts:
The ApplicationSet template specifying namespace: argocd
The Helm chart templates not explicitly handling namespace inheritance
Kustomize's HelmCharts namespace specification not being respected in this setup
Expected Behavior
Resources should be deployed to the namespace specified in the Kustomization file's HelmCharts section (windmill in this case), regardless of the ApplicationSet's destination namespace.
Suggested Fix
Add namespace templating to the Helm chart templates, for example:
metadata:
namespace: {{ .Release.Namespace }}
The text was updated successfully, but these errors were encountered:
Description
When deploying the Windmill Helm chart using Kustomize's HelmCharts feature within an Argo CD app of apps pattern, all resources are being created in the ArgoCD namespace instead of the intended namespace specified in the Kustomization file.
Current Setup and Behavior
I have an app of apps setup with ApplicationSet and AppProject:
Inside one of the tool directories, I have a Kustomization using HelmCharts:
The issue appears to be a combination of:
Expected Behavior
Resources should be deployed to the namespace specified in the Kustomization file's HelmCharts section (windmill in this case), regardless of the ApplicationSet's destination namespace.
Suggested Fix
Add namespace templating to the Helm chart templates, for example:
The text was updated successfully, but these errors were encountered: