apiVersion: v1
kind: Pod
metadata:
  name: {{ include "oam-runtime.fullname" . }}-test-connection
  labels:
  {{- include "oam-runtime.labels" . | nindent 4 }}
  annotations:
    "helm.sh/hook": test-success
spec:
  containers:
    - name: wget
      image: {{ .Values.imageRegistry }}{{ .Values.test.app.repository }}:{{ .Values.test.app.tag }}
      command: ['wget']
      args: ['{{ include "oam-runtime.fullname" . }}:{{ .Values.healthCheck.port }}']
  restartPolicy: Never