Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit 9640257

Browse files
committed
delta share is array
1 parent b962459 commit 9640257

File tree

4 files changed

+40
-13
lines changed

4 files changed

+40
-13
lines changed

charts/delta-sharing-server/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type: application
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 1.2.0
23+
version: 1.2.1
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to

charts/delta-sharing-server/templates/configmap.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@ data:
99
# The format version of this config file
1010
version: 1
1111
# Config shares/schemas/tables to share
12-
{{ .Values.share }}
12+
{{ printf "%s:" "shares" }}
13+
{{- range $.Values.shares }}
14+
{{ printf "- %s: %s" "name" (.name | quote) }}
15+
{{ printf "%s: " "schemas" | indent 2 }}
16+
{{- range .schemas }}
17+
{{ printf "- %s: %s" "name" (.name | quote) | indent 2 }}
18+
{{ printf "%s: " "tables" | indent 4 }}
19+
{{- range .tables }}
20+
{{ printf "- %s: %s" "name" (.name | quote) | indent 4 }}
21+
{{ printf "%s: %s" "location" .location | indent 6 }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
1325
1426
# Set the host name that the server will use
1527
host: {{ .Values.ingress.hostname | quote }}

charts/delta-sharing-server/values.schema.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,26 @@
8383
}
8484
}
8585
},
86-
"share": {
86+
"shares": {
8787
"description": "Share your data",
88-
"type": "string",
89-
"render": "textArea",
90-
"default": "shares:\n- name: \"share\"\n schemas:\n - name: \"schema\"\n tables:\n - name: \"name\"\n location: \"s3a://bucket/delta-table/\"\n",
91-
"x-form": {
92-
"value": "shares:\n- name: \"share\"\n schemas:\n - name: \"schema\"\n tables:\n - name: \"name\"\n location: \"s3a://{{s3.AWS_BUCKET_NAME}}/delta-table/\"\n"
93-
},
94-
"x-onyxia": {
95-
"overwriteDefaultWith": "shares:\n- name: \"share\"\n schemas:\n - name: \"schema\"\n tables:\n - name: \"name\"\n location: \"s3a://{{s3.AWS_BUCKET_NAME}}/delta-table/\"\n"
96-
}
88+
"type": "array",
89+
"default": [
90+
{
91+
"name": "share1",
92+
"schemas": [
93+
{
94+
"name": "schema1",
95+
"tables": [
96+
{
97+
"name": "table1",
98+
"location": "s3a://bucket/tablepath"
99+
}
100+
]
101+
}
102+
]
103+
}
104+
]
105+
97106
},
98107
"security": {
99108
"description": "security specific configuration",

charts/delta-sharing-server/values.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ s3:
3838
coresite:
3939
configMapName: ""
4040

41-
share: ""
41+
shares:
42+
- name: "share1"
43+
schemas:
44+
- name: "schema1"
45+
tables:
46+
- name: "table1"
47+
location: "s3a://bucket/tablepath"
4248

4349
security:
4450
networkPolicy:

0 commit comments

Comments
 (0)