Skip to content

Commit

Permalink
Autoscout configure auth0 (#30)
Browse files Browse the repository at this point in the history
* Add new config section auth0 to autoscout

* Update autoscout chart version
  • Loading branch information
alik-agaev authored Aug 13, 2024
1 parent cdf81a9 commit c19b891
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/autoscout/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.2
version: 0.2.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 9 additions & 0 deletions charts/autoscout/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ spec:
- name: NEXT_PUBLIC_API_ORIGIN
value: https://{{ .host }}
{{- end }}
- name: NEXT_PUBLIC_AUTH0_DOMAIN
value: {{ .Values.config.auth0.domain | quote }}
- name: NEXT_PUBLIC_AUTH0_AUDIENCE
value: {{ .Values.config.auth0.audience | quote }}
- name: NEXT_PUBLIC_AUTH0_CLIENT_ID
valueFrom:
secretKeyRef:
name: {{ printf "%s-auth0" (include "autoscout.fullname" .) }}
key: "client_id"
ports:
- name: http
containerPort: {{ .Values.frontend.service.port }}
Expand Down
11 changes: 11 additions & 0 deletions charts/autoscout/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@ metadata:
type: Opaque
data:
token: {{ .Values.config.github.token | b64enc | quote }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ template "autoscout.fullname" . }}-auth0
namespace: {{ .Release.Namespace }}
labels:
{{- include "autoscout.labels" . | nindent 4 }}
type: Opaque
data:
client_id: {{ .Values.config.auth0.client_id | b64enc | quote }}
4 changes: 4 additions & 0 deletions charts/autoscout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ config:
owner:
repo:
branch:
auth0:
domain: ""
client_id: ""
audience: ""

serviceAccount:
# Specifies whether a service account should be created
Expand Down

0 comments on commit c19b891

Please sign in to comment.