Add namespace parameter to chart values

closes #189
This commit is contained in:
Andrei Pohilko
2023-01-16 19:15:36 +00:00
parent 2e1f2e481b
commit 28a4b37bb5
2 changed files with 19 additions and 11 deletions

View File

@@ -34,14 +34,18 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
- name: HELM_CACHE_HOME - name: HELM_CACHE_HOME
value: /opt/dashboard/helm/cache value: /opt/dashboard/helm/cache
- name: HELM_CONFIG_HOME - name: HELM_CONFIG_HOME
value: /opt/dashboard/helm/config value: /opt/dashboard/helm/config
- name: HELM_DATA_HOME - name: HELM_DATA_HOME
value: /opt/dashboard/helm/data value: /opt/dashboard/helm/data
- name: DEBUG - name: DEBUG
value: {{- ternary " 1" "" .Values.debug }} value: {{- ternary " 1" "" .Values.debug }}
{{- if .Values.dashboard.namespace }}
- name: HELM_NAMESPACE
value: {{ .Values.dashboard.namespace }}
{{end}}
ports: ports:
- name: http - name: http
containerPort: 8080 containerPort: 8080
@@ -57,8 +61,8 @@ spec:
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: /opt/dashboard/helm mountPath: /opt/dashboard/helm
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
@@ -77,5 +81,5 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "helm-dashboard.fullname" . }} claimName: {{ include "helm-dashboard.fullname" . }}
{{- else }} {{- else }}
emptyDir: {} emptyDir: { }
{{- end }} {{- end }}

View File

@@ -30,6 +30,10 @@ resources:
dashboard: dashboard:
allowWriteActions: true allowWriteActions: true
# default namespace for Helm operations
namespace: ""
persistence: persistence:
enabled: true enabled: true