Skip to content

Commit e0ae60a

Browse files
committed
add error messages if st2.packs.volumes config is incomplete
1 parent c7f50cd commit e0ae60a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/deployments.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
{{- if and .Values.st2.packs.image }}
33
{{- fail "Value st2.packs.image was renamed to st2.packs.images and is now a list of images" }}
44
{{- end }}
5+
{{- if .Values.st2.packs.volumes.enabled }}
6+
{{- if .Values.st2.packs.images }}
7+
{{- fail "st2.packs.images is not compatible with st2.packs.volumes.enabled. Please use only one method for setting up packs directories." }}
8+
{{- end }}
9+
{{- if not (and .Values.st2.packs.volumes.packs .Values.st2.packs.volumes.virtualenvs) }}
10+
{{- fail "Volume definition(s) missing! When st2.packs.volumes.enabled, you must define volumes for both packs and virtualenvs." }}
11+
{{- end }}
12+
{{- end }}
513

614
---
715
apiVersion: apps/v1

0 commit comments

Comments
 (0)