Skip to content

Commit

Permalink
Add a simple connectivity test
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed May 12, 2024
1 parent 1bfd855 commit ceb6277
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions charts/trino/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "trino.fullname" . }}-test-connection"
labels:
app: {{ template "trino.name" . }}
chart: {{ template "trino.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.commonLabels }}
{{- tpl (toYaml .Values.commonLabels) . | nindent 4 }}
{{- end }}
annotations:
"helm.sh/hook": test-success
spec:
containers:
- name: cli
image: {{ include "trino.image" . }}
command: ['trino']
args:
- trino://{{ include "trino.fullname" . }}:{{ .Values.service.port }}
- --debug
- --network-logging=BODY
- --execute=SELECT 1
restartPolicy: Never

0 comments on commit ceb6277

Please sign in to comment.