Skip to content

Commit

Permalink
Optional custom connectors-secret (#70)
Browse files Browse the repository at this point in the history
* Optional custom connectors-secret

* Bump the version to 1.1.12

Co-authored-by: Fatih Ulusoy <[email protected]>
  • Loading branch information
fxulusoy and Fatih Ulusoy authored Jul 2, 2021
1 parent f77d52a commit 894cbde
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 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: "358"
description: High performance, distributed SQL query engine for big data
name: trino
version: 1.1.11
version: 1.1.12
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.11](https://img.shields.io/badge/Version-1.1.11-informational?style=flat-square) ![AppVersion: 358](https://img.shields.io/badge/AppVersion-358-informational?style=flat-square)
![Version: 1.1.12](https://img.shields.io/badge/Version-1.1.12-informational?style=flat-square) ![AppVersion: 358](https://img.shields.io/badge/AppVersion-358-informational?style=flat-square)

High performance, distributed SQL query engine for big data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
{{- include "trino.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: coordinator
annotations:
checksum/config: {{ printf "%s%s" .Values.server .Values.connectors | sha256sum }}
checksum/config: {{ printf "%s%s" .Values.server .Values.connectors .Values.connectorsSecret | sha256sum }}
spec:
{{- with .Values.image.securityContext }}
securityContext:
Expand All @@ -29,7 +29,7 @@ spec:
name: {{ template "trino.coordinator" . }}
- name: catalog-volume
secret:
secretName: trino-connectors
secretName: {{ .Values.connectorsSecret | default "trino-connectors" }}
- name: schemas-volume
configMap:
name: schemas-volume-coordinator
Expand Down
4 changes: 2 additions & 2 deletions valeriano-manassero/trino/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
{{- include "trino.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: worker
annotations:
checksum/config: {{ printf "%s%s" .Values.server .Values.connectors | sha256sum }}
checksum/config: {{ printf "%s%s" .Values.server .Values.connectors .Values.connectorsSecret | sha256sum }}
spec:
volumes:
- name: config-volume
Expand All @@ -30,7 +30,7 @@ spec:
defaultMode: 0777
- name: catalog-volume
secret:
secretName: trino-connectors
secretName: {{ .Values.connectorsSecret | default "trino-connectors" }}
- name: schemas-volume
configMap:
name: schemas-volume-worker
Expand Down
3 changes: 2 additions & 1 deletion valeriano-manassero/trino/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.connectors }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -8,7 +9,7 @@ data:
{{- range $key, $val := .Values.connectors }}
{{ $key }}: {{ $val | b64enc | quote }}
{{- end }}
{{- end }}
---
{{- if .Values.server.config.authenticationType }}{{- if eq .Values.server.config.authenticationType "PASSWORD" }}
apiVersion: v1
Expand Down
3 changes: 3 additions & 0 deletions valeriano-manassero/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ accessControl: {}
# ]
# }

# If you want to provide your own secrets resource, you can use this field:
# connectorsSecret:

connectors: {}
# Connectors configuration usually contains sensitive data (like passwords, usernames, ...)
# so data is stored in a secret
Expand Down

0 comments on commit 894cbde

Please sign in to comment.