Fix tests

Signed-off-by: Kevin Fox <[email protected]>

Co-authored-by: Marco Franssen <[email protected]>
This commit is contained in:
Kevin Fox
2023-03-16 18:58:31 +01:00
committed by Marco Franssen
co-authored by Marco Franssen
parent a9b99febb3
commit 6322a9a138
5 changed files with 9 additions and 7 deletions
@@ -37,7 +37,7 @@ A Helm chart to install the SPIFFE OIDC discovery provider.
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"chart-example.local"` | |
| ingress.hosts[0].host | string | `"oidc-discovery.example.org"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"Prefix"` | |
| ingress.tls | list | `[]` | |
@@ -5,6 +5,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ include "spiffe-oidc-discovery-provider.namespace" . }}
labels:
{{- include "spiffe-oidc-discovery-provider.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
@@ -29,11 +29,11 @@ spec:
args: ['-O', '/dev/null', '{{ include "spiffe-oidc-discovery-provider.fullname" . }}.{{ include "spiffe-oidc-discovery-provider.namespace" . }}.svc.cluster.local:{{ .Values.service.port }}/.well-known/openid-configuration']
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
{{- if and .Values.ingress.enabled .Values.ingress.test.enabled }}
{{- if .Values.ingress.enabled }}
- name: wget-ingress
image: busybox
command: ['wget']
args: ['{{ index .Values.config.domains 0 }}/.well-known/openid-configuration']
args: ['-O', '/dev/null', '{{ index .Values.config.domains 0 }}/.well-known/openid-configuration']
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
{{- end }}