{{- if .Values.electric.deploy }} apiVersion: v1 kind: Pod metadata: name: "{{ include "trigger-v4.fullname" . }}-test-electric" labels: {{- include "trigger-v4.labels" . | nindent 4 }} annotations: "helm.sh/hook": test spec: restartPolicy: Never containers: - name: test-electric image: curlimages/curl:8.14.1 command: ['sh', '-c'] args: - | echo "Testing Electric health endpoint..." curl -f http://{{ include "trigger-v4.fullname" . }}-electric:{{ .Values.electric.service.port }}/api/status echo "Electric test completed successfully" {{- end }}