Skip to content

Commit 65f6a0c

Browse files
authoredMay 15, 2023
Merge pull request #5 from perfana/improve-perfana-auth-proxy
Improve perfana auth proxy
2 parents a8388b9 + f1ac2c9 commit 65f6a0c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
 

‎charts/perfana-auth-proxy/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords:
77
- mTLS
88
- authentication
99
- proxy
10-
version: 0.1.6
10+
version: 0.1.7
1111
appVersion: 1.23.3-alpine
1212
maintainers:
1313
- name: Andrej van der Zee

‎charts/perfana-auth-proxy/templates/tests/smoketest.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ spec:
1313
- name: smoketest
1414
securityContext:
1515
{{- toYaml .Values.securityContext | nindent 10 }}
16-
image: frapsoft/openssl
16+
image: alpine/openssl
1717
command:
1818
- sh
1919
- -ec
2020
args:
2121
- |
2222
echo Checking connectivity service http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}
23-
wget -O- -q http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}
23+
wget -O- -q --timeout=2 g--tries=2 http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}
2424
echo
2525
2626
echo Checking connectivity {{ .Values.perfanaURL }}/api/status
27-
wget -O- -q {{ .Values.perfanaURL }}/api/status
27+
wget -O- -q --timeout=2 g--tries=2 {{ .Values.perfanaURL }}/api/status
2828
echo
2929
3030
echo Checking matching certificate and private key
@@ -46,29 +46,29 @@ spec:
4646
export BASIC_AUTH_USERNAME={{ .Values.basicAuthSecret.username }}
4747
export BASIC_AUTH_PASSWORD={{ .Values.basicAuthSecret.password }}
4848
echo Checking connectivity to http://$BASIC_AUTH_USERNAME:*****@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/api/status
49-
wget -O- -q http://$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/api/status
49+
wget -O- -q --timeout=2 g--tries=2 http://$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/api/status
5050
echo
5151
5252
echo Checking connectivity to http://$BASIC_AUTH_USERNAME:*****@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/mimir/api/v1/status/buildinfo
53-
wget -O- -q http://$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/mimir/api/v1/status/buildinfo > /dev/null
53+
wget -O- -q --timeout=2 g--tries=2 http://$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/mimir/api/v1/status/buildinfo > /dev/null
5454
echo OK
5555
5656
echo Checking connectivity to http://$BASIC_AUTH_USERNAME:*****@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/influxdb/ping
57-
wget -O- -q http://$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/influxdb/ping
57+
wget -O- -q --timeout=2 g--tries=2 http://$BASIC_AUTH_USERNAME:$BASIC_AUTH_PASSWORD@{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/influxdb/ping
5858
echo OK
5959
6060
{{- else if not .Values.basicAuth.enabled }}
6161
6262
echo Checking connectivity to http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/api/status
63-
wget -O- -q http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/api/status
63+
wget -O- -q --timeout=2 g--tries=2 http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/api/status
6464
echo
6565
6666
echo Checking connectivity to http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/mimir/api/v1/status/buildinfo
67-
wget -O- -q http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/mimir/api/v1/status/buildinfo > /dev/null
67+
wget -O- -q --timeout=2 g--tries=2 http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/mimir/api/v1/status/buildinfo > /dev/null
6868
echo OK
6969
7070
echo Checking connectivity to http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/influxdb/ping
71-
wget -O- -q http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/influxdb/ping
71+
wget -O- -q --timeout=2 g--tries=2 http://{{ include "perfana-auth-proxy.fullname" . }}:{{ .Values.service.port }}/influxdb/ping
7272
echo OK
7373
{{- end }}
7474

0 commit comments

Comments
 (0)
Please sign in to comment.