Skip to content

Commit

Permalink
k8s-stack: fail template rendering if both vmcluster.enabled and vmsi…
Browse files Browse the repository at this point in the history
…ngle.enabled are true
  • Loading branch information
AndrewChubatiuk committed Dec 3, 2024
1 parent d4715cf commit 556bffe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-k8s-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- fail template if both vmcluster and vmsingle are enabled

## 0.30.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{- $app := .Values.vmcluster }}
{{- if $app.enabled }}
{{- if .Values.vmsingle.enabled }}
{{- fail "Only one of .vmsingle.enabled and .vmcluster.enabled can be true"}}
{{- end }}
{{- $ctx := dict "helm" . "appKey" (list "vmcluster" "spec") }}
{{- $fullname := include "vm.cr.fullname" $ctx }}
{{- $ns := include "vm.namespace" $ctx }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{- $app := .Values.vmsingle }}
{{- if $app.enabled }}
{{- if .Values.vmcluster.enabled }}
{{- fail "Only one of .vmsingle.enabled and .vmcluster.enabled can be true"}}
{{- end }}
{{- $ctx := dict "helm" . "appKey" (list "vmsingle" "spec") }}
{{- $fullname := include "vm.cr.fullname" $ctx }}
{{- $ns := include "vm.namespace" $ctx }}
Expand Down

0 comments on commit 556bffe

Please sign in to comment.