|
34 | 34 | {{- toYaml .Values.securityContext | nindent 12 }} |
35 | 35 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
36 | 36 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 37 | + volumeMounts: |
| 38 | + - name: oidc-cookie-encryption |
| 39 | + mountPath: /etc/bridge/oidc-authnKey |
| 40 | + subPath: authnKey |
| 41 | + - name: oidc-cookie-encryption |
| 42 | + mountPath: /etc/bridge/oidc-encryptKey |
| 43 | + subPath: encryptKey |
37 | 44 | ports: |
38 | 45 | - name: http |
39 | 46 | containerPort: {{ .Values.service.port }} |
@@ -63,12 +70,18 @@ spec: |
63 | 70 | - name: BRIDGE_USER_AUTH_OIDC_CLIENT_SECRET |
64 | 71 | valueFrom: |
65 | 72 | secretKeyRef: |
66 | | - name: {{ .Values.secret.secretName }} |
| 73 | + name: {{ .Values.secrets.idpSecret.secretName }} |
67 | 74 | key: clientSecret |
68 | 75 | - name: BRIDGE_USER_AUTH_OIDC_ISSUER_URL |
69 | 76 | value: {{ .Values.bridgeEnvironmentVariables.BRIDGE_USER_AUTH_OIDC_ISSUER_URL }} |
70 | 77 | - name: BRIDGE_V |
71 | 78 | value: {{ .Values.verbosity | quote }} |
| 79 | + {{- if eq .Values.bridgeEnvironmentVariables.BRIDGE_USER_AUTH "oidc" }} |
| 80 | + - name: BRIDGE_COOKIE_ENCRYPTION_KEY_FILE |
| 81 | + value: "/etc/bridge/oidc-encryptKey" |
| 82 | + - name: BRIDGE_COOKIE_AUTHENTICATION_KEY_FILE |
| 83 | + value: "/etc/bridge/oidc-authnKey" |
| 84 | + {{- end }} |
72 | 85 | {{- with .Values.nodeSelector }} |
73 | 86 | nodeSelector: |
74 | 87 | {{- toYaml . | nindent 8 }} |
|
81 | 94 | tolerations: |
82 | 95 | {{- toYaml . | nindent 8 }} |
83 | 96 | {{- end }} |
| 97 | + {{- if eq .Values.bridgeEnvironmentVariables.BRIDGE_USER_AUTH "oidc" }} |
| 98 | + volumes: |
| 99 | + - name: oidc-cookie-encryption |
| 100 | + secret: |
| 101 | + secretName: {{ .Values.secrets.oidcCookiesEncryption.secretName }} |
| 102 | + {{- end }} |
| 103 | + |
0 commit comments