Skip to content

Commit

Permalink
Add schemas to Trino coordinator (#46)
Browse files Browse the repository at this point in the history
* rename schemas to avoid conflict

* schemas to coordinator

* chart update
  • Loading branch information
valeriano-manassero authored Apr 15, 2021
1 parent 424ca31 commit b9d8cf8
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion valeriano-manassero/trino/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "355"
description: High performance, distributed SQL query engine for big data
name: trino
version: 1.1.0
version: 1.1.1
home: https://trino.io
icon: https://trino.io/assets/images/trino-logo/trino-ko_tiny-alt.svg
sources:
Expand Down
2 changes: 1 addition & 1 deletion valeriano-manassero/trino/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# trino

![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![AppVersion: 355](https://img.shields.io/badge/AppVersion-355-informational?style=flat-square)
![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![AppVersion: 355](https://img.shields.io/badge/AppVersion-355-informational?style=flat-square)

High performance, distributed SQL query engine for big data

Expand Down
13 changes: 13 additions & 0 deletions valeriano-manassero/trino/templates/configmap-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,16 @@ data:
io.trino={{ .Values.server.log.trino.level }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: schemas-volume-coordinator
labels:
{{- include "trino.labels" . | nindent 4 }}
app.kubernetes.io/component: coordinator
data:
{{- range $key, $val := .Values.schemas }}
{{ $key }}: {{ $val | quote }}
{{- end }}

---
2 changes: 1 addition & 1 deletion valeriano-manassero/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ data:
apiVersion: v1
kind: ConfigMap
metadata:
name: schemas-volume
name: schemas-volume-worker
labels:
{{- include "trino.labels" . | nindent 4 }}
app.kubernetes.io/component: worker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ spec:
- name: catalog-volume
secret:
secretName: trino-connectors
- name: schemas-volume
configMap:
name: schemas-volume-coordinator
containers:
- name: {{ .Chart.Name }}-coordinator
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- mountPath: {{ .Values.server.config.path }}
name: config-volume
- mountPath: /etc/trino/schemas
name: schemas-volume
- mountPath: {{ .Values.server.config.path }}/catalog
name: catalog-volume
ports:
Expand Down
2 changes: 1 addition & 1 deletion valeriano-manassero/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
secretName: trino-connectors
- name: schemas-volume
configMap:
name: schemas-volume
name: schemas-volume-worker
containers:
- name: {{ .Chart.Name }}-worker
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down

0 comments on commit b9d8cf8

Please sign in to comment.