Skip to content

Commit

Permalink
Use variable for oidc socket
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Franssen <[email protected]>
  • Loading branch information
marcofranssen committed Nov 15, 2022
1 parent 1658ead commit 82ef7ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/spire/templates/oidc-dp-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if eq (.Values.oidc.enabled | toString) "true" }}
{{- $oidcSocket := "/run/spire/oidc-sockets/spire-oidc-server.sock" }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -18,7 +19,7 @@ data:
{{- if .Values.oidc.insecureScheme.enabled }}
allow_insecure_scheme = {{ .Values.oidc.insecureScheme.enabled }}
listen_socket_path = "/run/spire/oidc-sockets/spire-oidc-server.sock"
listen_socket_path = {{ $oidcSocket | quote }}
{{- else }}
acme {
directory_url = "{{ .Values.oidc.config.acme.directoryUrl }}"
Expand All @@ -41,7 +42,7 @@ data:
{{- if .Values.oidc.insecureScheme.enabled }}
default.conf.template: |
upstream oidc {
server unix:/run/spire/oidc-sockets/spire-oidc-server.sock;
server unix:{{ $oidcSocket }};
}
server {
Expand Down

0 comments on commit 82ef7ed

Please sign in to comment.