# helm_charts_spark-sql-test.yaml
apiVersion: v1
kind: Pod
metadata:
  name: "{{ .Release.Name }}-sql-test-{{ randAlphaNum 5 | lower }}"
  annotations:
    "helm.sh/hook": test-success
spec:
  containers:
    - name: {{ .Release.Name }}-sql-test
      image: {{ .Values.Master.Image }}:{{ .Values.Master.ImageTag }}
      command: ["{{ .Values.Spark.Path }}/bin/spark-sql", "--master",
                "spark://{{ .Release.Name }}-master:{{ .Values.Master.ServicePort }}", "-e",
                "show databases;"]
  restartPolicy: Never