apiVersion: v1
kind: Pod
metadata:
  name: "{{ include "a-sub-chart.fullname" . }}-test-connection"
  labels:
    {{- include "a-sub-chart.labels" . | nindent 4 }}
  annotations:
    "helm.sh/hook": test-success
spec:
  containers:
    - name: wget
      image: busybox
      command: ['wget']
      args: ['{{ include "a-sub-chart.fullname" . }}:{{ .Values.service.port }}']
  restartPolicy: Never
