update
This commit is contained in:
24
pocketbase/templates/tests/test-connection.yaml
Normal file
24
pocketbase/templates/tests/test-connection.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- /*
|
||||
Test connection to PocketBase instances
|
||||
Run with: helm test <release-name>
|
||||
*/ -}}
|
||||
{{- range .Values.instances }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ $.Release.Name }}-test-connection-{{ .id }}"
|
||||
labels:
|
||||
app: pocketbase
|
||||
instance: {{ .id }}
|
||||
{{- include "pocketbase.labels" $ | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
containers:
|
||||
- name: wget
|
||||
image: busybox
|
||||
command: ['wget']
|
||||
args: ['-q', '--spider', 'http://pocketbase-{{ .id }}/api/health']
|
||||
restartPolicy: Never
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user