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 42
42
- --password
43
43
{{- end }}
44
44
- --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 }}
46
50
- --no-progress
51
+ - --network-logging=BODY
47
52
{{- if eq .Values.server.config.authenticationType "PASSWORD" }}
48
53
env :
49
54
- 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=(
11
11
[exchange_manager_values]=" --values test-exchange-manager-values.yaml"
12
12
[graceful_shutdown]=" --values test-graceful-shutdown-values.yaml"
13
13
[resource_groups_properties]=" --values test-resource-groups-properties-values.yaml"
14
+ [dynamic_catalogs]=" --values dyncat-values.yaml"
14
15
)
15
16
16
17
declare -A testCaseCharts=(
@@ -22,6 +23,7 @@ declare -A testCaseCharts=(
22
23
[exchange_manager_values]=" ../../charts/trino"
23
24
[graceful_shutdown]=" ../../charts/trino"
24
25
[resource_groups_properties]=" ../../charts/trino"
26
+ [dynamic_catalogs]=" ../../charts/trino"
25
27
)
26
28
27
29
function join_by {
@@ -105,6 +107,19 @@ spec:
105
107
requests:
106
108
storage: 128Mi
107
109
YAML
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
108
123
109
124
# only install the Prometheus and KEDA Helm charts when running the `complete_values` test
110
125
if printf ' %s\0' " ${TEST_NAMES[@]} " | grep -qwz complete_values; then
You can’t perform that action at this time.
0 commit comments