apiVersion: v1
kind: Pod
metadata:
  name: "{{ include "keto.fullname" . }}-test-connection"
  {{- if .Release.Namespace }}
  namespace: {{ .Release.Namespace }}
  {{- end }}
  labels: {{- include "keto.labels" . | nindent 4 }}
    {{- with .Values.test.labels }}
    {{- toYaml . | nindent 4 }}
    {{- end }}
  annotations:
    helm.sh/hook: test-success
spec:
  containers:
    - name: wget
      image: "{{ .Values.test.busybox.repository }}:{{ .Values.test.busybox.tag }}"
      command: ['wget']
      args: ['{{ include "keto.fullname" . }}-write:{{ .Values.service.write.port }}/health/ready']
  restartPolicy: Never