apiVersion: v1
kind: Pod
metadata:
  name: "{{ include "helm-dashboard.fullname" . }}-test-connection"
  labels:
    {{- include "helm-dashboard.labels" . | nindent 4 }}
  annotations:
    "helm.sh/hook": test
spec:
  {{- include "helm-dashboard.imagePullSecrets" . | nindent 2 }}
  containers:
    - name: wget
      image: {{ include "test.image" . }}
      command: ['wget']
      args: ['--timeout=5', '{{ include "helm-dashboard.fullname" . }}:{{ .Values.service.port }}']
  restartPolicy: Never
