about summary refs log tree commit diff
path: root/k8s/rest-api/templates/tests
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2024-04-28 23:25:49 +0200
committerBaitinq <[email protected]>2024-04-28 23:26:34 +0200
commit5d76adc2b7f655bdc2a61cada09ce2730b2158d0 (patch)
treebda621f552a72d7712eb070cca0f60a2b778da8c /k8s/rest-api/templates/tests
downloadfs-tracer-backend-5d76adc2b7f655bdc2a61cada09ce2730b2158d0.tar.gz
fs-tracer-backend-5d76adc2b7f655bdc2a61cada09ce2730b2158d0.tar.bz2
fs-tracer-backend-5d76adc2b7f655bdc2a61cada09ce2730b2158d0.zip
Initial commit
Diffstat (limited to 'k8s/rest-api/templates/tests')
-rw-r--r--k8s/rest-api/templates/tests/test-connection.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/k8s/rest-api/templates/tests/test-connection.yaml b/k8s/rest-api/templates/tests/test-connection.yaml
new file mode 100644
index 0000000..96fd9f2
--- /dev/null
+++ b/k8s/rest-api/templates/tests/test-connection.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  name: "{{ include "rest-api.fullname" . }}-test-connection"
+  labels:
+    {{- include "rest-api.labels" . | nindent 4 }}
+  annotations:
+    "helm.sh/hook": test
+spec:
+  containers:
+    - name: wget
+      image: busybox
+      command: ['wget']
+      args: ['{{ include "rest-api.fullname" . }}:{{ .Values.service.port }}']
+  restartPolicy: Never