Skip to content

Commit

Permalink
[chart] Support setting the auth header name via the chart
Browse files Browse the repository at this point in the history
Signed-off-by: Flynn <[email protected]>
  • Loading branch information
kflynn committed May 2, 2024
1 parent 7550dea commit 0e9b2f9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faces-chart/templates/color.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ spec:
env:
- name: FACES_SERVICE
value: "color"
- name: USER_HEADER_NAME
value: {{ .Values.authHeader | quote }}
{{- if .Values.color.color }}
- name: COLOR
value: {{ .Values.color.color }}
Expand Down
2 changes: 2 additions & 0 deletions faces-chart/templates/color2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
env:
- name: FACES_SERVICE
value: "color"
- name: USER_HEADER_NAME
value: {{ .Values.authHeader | quote }}
{{- if .Values.color2.color }}
- name: COLOR
value: {{ .Values.color2.color }}
Expand Down
2 changes: 2 additions & 0 deletions faces-chart/templates/face.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ spec:
env:
- name: FACES_SERVICE
value: "face"
- name: USER_HEADER_NAME
value: {{ .Values.authHeader | quote }}
{{- include "partials.face-errorFraction" . }}
{{- include "partials.face-delayBuckets" . }}
resources:
Expand Down
3 changes: 3 additions & 0 deletions faces-chart/templates/faces-gui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
- name: faces-gui
image: {{ include "partials.gui-image" . }}
imagePullPolicy: {{ include "partials.gui-imagePullPolicy" . }}
env:
- name: USER_HEADER_NAME
value: {{ .Values.authHeader | quote }}
ports:
- name: http
containerPort: 8000
Expand Down
2 changes: 2 additions & 0 deletions faces-chart/templates/smiley.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ spec:
env:
- name: FACES_SERVICE
value: "smiley"
- name: USER_HEADER_NAME
value: {{ .Values.authHeader | quote }}
{{- if .Values.smiley.smiley }}
- name: SMILEY
value: {{ .Values.smiley.smiley }}
Expand Down
2 changes: 2 additions & 0 deletions faces-chart/templates/smiley2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
env:
- name: FACES_SERVICE
value: "smiley"
- name: USER_HEADER_NAME
value: {{ .Values.authHeader | quote }}
{{- if .Values.smiley2.smiley }}
- name: SMILEY
value: {{ .Values.smiley2.smiley }}
Expand Down
3 changes: 3 additions & 0 deletions faces-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ defaultImageTag: "" # If not set, uses the appVersion
# Default imagePullPolicy. This is used only if not set in the sections below.
defaultImagePullPolicy: IfNotPresent

# User auth header.
authHeader: "X-Faces-User"

gui:
image: "" # If set, overrides the imageName/imageTag pair
imageName: ghcr.io/buoyantio/faces-gui
Expand Down

0 comments on commit 0e9b2f9

Please sign in to comment.