21 lines
578 B
YAML
21 lines
578 B
YAML
{{- if .Values.s3.deploy }}
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: "{{ include "trigger-v4.fullname" . }}-test-s3"
|
|
labels:
|
|
{{- include "trigger-v4.labels" . | nindent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: test-s3
|
|
image: curlimages/curl:8.14.1
|
|
command: ['sh', '-c']
|
|
args:
|
|
- |
|
|
echo "Testing S3 (MinIO) health endpoint..."
|
|
curl -f http://{{ include "trigger-v4.fullname" . }}-minio:9000/minio/health/live
|
|
echo "S3 test completed successfully"
|
|
{{- end }} |