From a0901efda6394fe722321a08ee263f7cf82c160f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anatol=20Karalko=C5=AD?= Date: Thu, 6 Jun 2024 16:30:57 +0200 Subject: [PATCH] Add a connection test for SQLi --- charts/sqli/Chart.yaml | 2 +- .../templates/tests/test-internal-connection.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 charts/sqli/templates/tests/test-internal-connection.yaml diff --git a/charts/sqli/Chart.yaml b/charts/sqli/Chart.yaml index 7f37bdc..3d33314 100644 --- a/charts/sqli/Chart.yaml +++ b/charts/sqli/Chart.yaml @@ -4,4 +4,4 @@ description: A Helm chart for Kubernetes type: application keywords: - sqli -version: 1.0.13 +version: 1.0.15 diff --git a/charts/sqli/templates/tests/test-internal-connection.yaml b/charts/sqli/templates/tests/test-internal-connection.yaml new file mode 100644 index 0000000..2f2922b --- /dev/null +++ b/charts/sqli/templates/tests/test-internal-connection.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ .Release.Name }}-test-internal-connection" + namespace: "{{ .Release.Namespace }}" + annotations: + "helm.sh/hook": test +spec: + containers: + - name: wget + image: busybox + command: ['sh'] + args: ['-c', 'echo "Connection to "; wget -qO- http://{{ .Release.Name }}'] + restartPolicy: Never