Configurable insecureScheme nginx image

Co-Authored-by: Gert Jan Kamstra <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:02 +01:00
committed by Marco Franssen
co-authored by Gert Jan Kamstra
parent 1c54ce82bb
commit 4f93ead90a
5 changed files with 19 additions and 10 deletions
+4 -4
View File
@@ -40,7 +40,7 @@ spec:
args:
- -config
- /run/spire/oidc/config/oidc-discovery-provider.conf
{{- if not .Values.oidc.allowInsecureScheme }}
{{- if not .Values.oidc.insecureScheme.enabled }}
ports:
- containerPort: 443
name: https
@@ -64,12 +64,12 @@ spec:
periodSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.oidc.allowInsecureScheme }}
{{- if .Values.oidc.insecureScheme.enabled }}
- name: nginx
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: nginx:latest
imagePullPolicy: {{ .Values.oidc.image.pullPolicy }}
image: "{{ .Values.oidc.insecureScheme.nginx.repository }}:{{ .Values.oidc.insecureScheme.nginx.tag }}"
imagePullPolicy: {{ .Values.oidc.insecureScheme.nginx.pullPolicy }}
ports:
- containerPort: 80
name: http
@@ -12,8 +12,8 @@ data:
{{ else }}
domains = []
{{ end }}
{{- if .Values.oidc.allowInsecureScheme }}
allow_insecure_scheme = {{ .Values.oidc.allowInsecureScheme }}
{{- if .Values.oidc.insecureScheme.enabled }}
allow_insecure_scheme = {{ .Values.oidc.insecureScheme.enabled }}
listen_socket_path = "/run/spire/oidc-sockets/oidc-server.sock"
{{- else }}
acme {
@@ -28,7 +28,7 @@ data:
socket_path = "/run/spire/agent-sockets/agent.sock"
trust_domain = "{{ .Values.spire.trustDomain }}"
}
{{- if .Values.oidc.allowInsecureScheme }}
{{- if .Values.oidc.insecureScheme.enabled }}
default.conf.template: |
upstream oidc {
server unix:/run/spire/oidc-sockets/oidc-server.sock;
+1 -1
View File
@@ -11,7 +11,7 @@ metadata:
spec:
type: {{ .Values.oidc.service.type }}
ports:
{{- if .Values.oidc.allowInsecureScheme }}
{{- if .Values.oidc.insecureScheme.enabled }}
- name: http
port: {{ .Values.oidc.service.port }}
targetPort: http