File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
charts/trino/templates/tests Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 4242 - --password
4343 {{- end }}
4444 - --debug
45- - --execute=SELECT COUNT(*) FROM tpch.tiny.nation
45+ {{- if has "catalog.management=dynamic" .Values.additionalConfigProperties }}
46+ - --execute=CREATE CATALOG dynamic USING tpch; SELECT name FROM dynamic.tiny.nation WHERE nationkey = 12
47+ {{- else }}
48+ - --execute=SELECT COUNT(*) FROM tpch.tiny.nation WHERE nationkey = 12
49+ {{- end }}
4650 - --no-progress
51+ - --network-logging=BODY
4752 {{- if eq .Values.server.config.authenticationType "PASSWORD" }}
4853 env :
4954 - name : TRINO_PASSWORD
Original file line number Diff line number Diff line change 1+ additionalConfigProperties :
2+ - catalog.management=dynamic
3+
4+ server :
5+ coordinatorExtraConfig : |
6+ catalog.config-dir=/etc/trino/dynamic-catalog
7+
8+ coordinator :
9+ additionalVolumes :
10+ - name : catalogs
11+ persistentVolumeClaim :
12+ claimName : catalogs-pvc
13+
14+ additionalVolumeMounts :
15+ - name : catalogs
16+ mountPath : /etc/trino/dynamic-catalog
17+ readOnly : false
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ declare -A testCases=(
1111 [exchange_manager_values]=" --values test-exchange-manager-values.yaml"
1212 [graceful_shutdown]=" --values test-graceful-shutdown-values.yaml"
1313 [resource_groups_properties]=" --values test-resource-groups-properties-values.yaml"
14+ [dynamic_catalogs]=" --values dyncat-values.yaml"
1415)
1516
1617declare -A testCaseCharts=(
@@ -22,6 +23,7 @@ declare -A testCaseCharts=(
2223 [exchange_manager_values]=" ../../charts/trino"
2324 [graceful_shutdown]=" ../../charts/trino"
2425 [resource_groups_properties]=" ../../charts/trino"
26+ [dynamic_catalogs]=" ../../charts/trino"
2527)
2628
2729function join_by {
@@ -105,6 +107,19 @@ spec:
105107 requests:
106108 storage: 128Mi
107109YAML
110+ cat << YAML | kubectl -n "$NAMESPACE " create -f -
111+ apiVersion: v1
112+ kind: PersistentVolumeClaim
113+ metadata:
114+ name: catalogs-pvc
115+ spec:
116+ accessModes:
117+ - ReadWriteOnce
118+ storageClassName: standard
119+ resources:
120+ requests:
121+ storage: 30Mi
122+ YAML
108123
109124# only install the Prometheus and KEDA Helm charts when running the `complete_values` test
110125if printf ' %s\0' " ${TEST_NAMES[@]} " | grep -qwz complete_values; then
You can’t perform that action at this time.
0 commit comments