Files
2026-07-13 13:32:57 +08:00

21 lines
627 B
YAML

{{- 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 }}