Improve Tornjak backend test (#321)

This commit is contained in:
Mariusz Sabath
2023-05-30 23:29:29 +02:00
committed by GitHub
parent 5b779dc88a
commit 9fa1ec28a7
2 changed files with 8 additions and 1 deletions
@@ -163,6 +163,7 @@ spec:
startupProbe:
httpGet:
scheme: HTTP
path: /api/tornjak/serverinfo
port: 10000
{{- toYaml .Values.tornjak.startupProbe | nindent 12 }}
args:
@@ -15,7 +15,13 @@ spec:
- name: curl-tornjak-backend
image: cgr.dev/chainguard/bash:latest
command: ['curl']
args: ['-k', '-s', '-f', 'http://{{ include "spire-tornjak.backend" . }}.{{ include "spire-server.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}:{{ .Values.tornjak.service.port }}']
args: ['-k', '-s', '-f', 'http://{{ include "spire-tornjak.backend" . }}.{{ include "spire-server.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}:{{ .Values.tornjak.service.port }}/api/tornjak/serverinfo']
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
- name: curl-tornjak-backend-and-spire
image: cgr.dev/chainguard/bash:latest
command: ['curl']
args: ['-k', '-s', '-f', 'http://{{ include "spire-tornjak.backend" . }}.{{ include "spire-server.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}:{{ .Values.tornjak.service.port }}/api/healthcheck']
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
restartPolicy: Never