Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[trino][catalogs] define username/password with secret #316

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
11 changes: 11 additions & 0 deletions charts/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -955,5 +955,16 @@ Fast distributed SQL query engine for big data analytics that helps you explore
port: 9999
```

* `additionalSecrets` - list, default: `[]`
Example:
```yaml
additionalSecrets: []
# - name: extra-secret
# value:
# POSTGRES_USER:
# POSTGRES_PASSWORD:
# MARIADB_USER:
# MARIADB_PASSWORD:

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
14 changes: 14 additions & 0 deletions charts/trino/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,17 @@ data:
group.db: {{ .Values.auth.groups | b64enc }}
{{- end }}
{{- end }}
---
{{- if .Values.additionalSecrets }}
{{- range .Values.additionalSecrets }}
apiVersion: v1
kind: Secret
metadata:
name: "{{ .name }}"
data:
{{- range $key, $val := .value }}
{{ $key }}: {{ $val | b64enc | nindent 4 }}
{{- end }}
type: Opaque
{{- end }}
{{- end }}
27 changes: 27 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,20 @@ catalogs:
additionalCatalogs: {}
# additionalCatalogs -- Deprecated, use `catalogs` instead. Configure additional
# [catalogs](https://trino.io/docs/current/installation/deployment.html#catalog-properties).
# @raw
# Example:
# ```yaml
# postgresql: |
# connector.name=postgresql
# connection-url=jdbc:postgresql://postgres-service.my-postgres.svc:5432/my_db
# connection-user=${ENV:POSTGRESQL_USER}
# connection-password=${ENV:POSTGRESQL_PASSWORD}
# mariadb: |
# connector.name=mariadb
# connection-url=jdbc:mariadb://mariadb-service.my-mariadb.svc:3306/my_db
# connection-user=${ENV:MARIADB_USER}
# connection-password=${ENV:MARIADB_PASSWORD}
# ```

env: []
# env -- additional environment variables added to every pod, specified as a list with explicit values
Expand Down Expand Up @@ -680,6 +694,8 @@ coordinator:
# ```yaml
# - name: extras
# emptyDir: {}
# - name: extra-secret
# emptyDir: {}
# ```

additionalVolumeMounts: []
Expand All @@ -689,6 +705,9 @@ coordinator:
# - name: extras
# mountPath: /usr/share/extras
# readOnly: true
# - name: extra-secret
# mountPath: /etc/trino/secrets
# readOnly: true

annotations: {}

Expand Down Expand Up @@ -1133,3 +1152,11 @@ networkPolicy:
# port: 9999
# ```
egress: []

additionalSecrets: []
# - name: extra-secret
# value:
# POSTGRESQL_USER:
# POSTGRESQL_PASSWORD:
# MARIADB_USER:
# MARIADB_PASSWORD:
Loading