Update HAProxy Helm Test
- Changed the Helm Test to just expect an http status code response. - This removes the need for anonymous auth to be enabled. Change-Id: I2ff8ec9d3ba2c4438ddaee6116012b42f4c8b8e5
This commit is contained in:
parent
309f1d2959
commit
0b0e0ee164
|
@ -37,6 +37,14 @@ spec:
|
|||
image: {{ .Values.images.tags.test }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{ tuple . .Values.pod.resources.test | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }}
|
||||
command: ["/bin/sh", "-c", "wget --no-check-certificate --spider ${HAPROXY_URL}; exit $?"]
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |-
|
||||
CODE=$(curl -k -s -o /dev/null -w "%{http_code}" ${HAPROXY_URL})
|
||||
if [ $CODE -ne 000 ]; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
||||
...
|
||||
{{- end }}
|
||||
|
|
|
@ -61,7 +61,7 @@ images:
|
|||
tags:
|
||||
anchor: gcr.io/google_containers/hyperkube-amd64:v1.10.2
|
||||
haproxy: haproxy:1.8.3
|
||||
test: busybox:1.28.3
|
||||
test: python:3.6
|
||||
pull_policy: "IfNotPresent"
|
||||
|
||||
manifests:
|
||||
|
|
Loading…
Reference in New Issue