Skip to content

Commit 7f028d7

Browse files
w3amanabhilashshetty04
authored andcommitted
add check for subcharts enable in templates
Signed-off-by: w3aman <aman.gupta@mayadata.io>
1 parent 678cf4a commit 7f028d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

deploy/charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ appVersion: 4.0.1
3131

3232
dependencies:
3333
- name: kube-prometheus-stack
34-
version: "60.0.*"
34+
version: "61.0.*"
3535
repository: https://prometheus-community.github.io/helm-charts
3636
condition: kube-prometheus-stack.install
3737
- name: node-problem-detector

deploy/charts/templates/_helpers.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,8 @@ Usage:
8080
{{- range $subchart }}
8181
{{- $values = index $values . }}
8282
{{- end }}
83-
{{- include $template (dict "Chart" (dict "Name" (last $subchart)) "Values" $values "Release" $dot.Release "Capabilities" $dot.Capabilities) }}
83+
{{- if $values.enabled }} # Add this condition to check if the subchart is enabled
84+
{{- include $template (dict "Chart" (dict "Name" (last $subchart)) "Values" $values "Release" $dot.Release "Capabilities" $dot.Capabilities) }}
8485
{{- end }}
86+
{{- end }}
87+

0 commit comments

Comments
 (0)