Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amundsen_dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Surendar Reddy Mangannagari
amundsen_dev
Commits
748edcb8
Unverified
Commit
748edcb8
authored
Oct 22, 2020
by
Jonas Brunsgaard
Committed by
GitHub
Oct 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add compat with flask-oidc v0.1.x (#777)
Signed-off-by:
Jonas Brunsgaard
<
jonas.brunsgaard@gmail.com
>
parent
419d374d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
10 deletions
+29
-10
deployment-frontend.yaml
...be-helm/templates/helm/templates/deployment-frontend.yaml
+21
-6
values.yaml
amundsen-kube-helm/templates/helm/values.yaml
+7
-3
oidc.md
docs/authentication/oidc.md
+1
-1
No files found.
amundsen-kube-helm/templates/helm/templates/deployment-frontend.yaml
View file @
748edcb8
...
...
@@ -64,26 +64,41 @@ spec:
-
name
:
FRONTEND_SVC_CONFIG_MODULE_CLASS
value
:
amundsen_application.oidc_config.OidcConfig
-
name
:
FLASK_OIDC_WHITELISTED_ENDPOINTS
value
:
status,healthcheck,health
-
name
:
FLASK_OIDC_
SQLALCHEMY_DATABASE_URI
value
:
status,healthcheck,health
,logout
-
name
:
SQLALCHEMY_DATABASE_URI
value
:
sqlite:///sessions.db
-
name
:
APP_WRAPPER
value
:
flaskoidc
-
name
:
APP_WRAPPER_CLASS
value
:
FlaskOIDC
-
name
:
FLASK_
OIDC_CLIENT_SECRETS
-
name
:
OIDC_CLIENT_SECRETS
value
:
/etc/client_secrets.json
-
name
:
FLASK_OIDC_SECRET_KEY
{{
- if .Values.frontEnd.OVERWRITE_REDIRECT_URI
}}
-
name
:
OVERWRITE_REDIRECT_URI
value
:
{{
.Values.frontEnd.OVERWRITE_REDIRECT_URI
}}
{{
- end
}}
-
name
:
OIDC_SECRET_KEY
valueFrom
:
secretKeyRef
:
name
:
oidc-config
key
:
OIDC_CLIENT_SECRET
{{
- end
}}
command
:
[
"
gunicorn"
]
args
:
[
'
-w'
,
'
4'
,
'
--bind'
,
'
:5000'
,
'
amundsen_application.wsgi'
]
readinessProbe
:
httpGet
:
path
:
"
/healthcheck"
port
:
5000
initialDelaySeconds
:
10
periodSeconds
:
60
timeoutSeconds
:
1
successThreshold
:
1
failureThreshold
:
5
livenessProbe
:
httpGet
:
path
:
"
/healthcheck"
port
:
5000
initialDelaySeconds
:
6
0
initialDelaySeconds
:
1
0
periodSeconds
:
60
timeoutSeconds
:
1
successThreshold
:
1
...
...
@@ -97,4 +112,4 @@ spec:
{{
- with .Values.metadata.resources
}}
resources
:
{{
toYaml . | indent 10
}}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
amundsen-kube-helm/templates/helm/values.yaml
View file @
748edcb8
...
...
@@ -68,7 +68,7 @@ search:
##
## search.imageTag -- The image tag of the search container.
##
imageTag
:
2.
0
.0
imageTag
:
2.
4
.0
##
## search.replicas -- How many replicas of the search service to run.
##
...
...
@@ -128,7 +128,7 @@ metadata:
##
## metadata.imageTag -- The image tag of the metadata container.
##
imageTag
:
2.
0.0
imageTag
:
2.
5.5
##
## metadata.replicas -- How many replicas of the metadata service to run.
##
...
...
@@ -184,7 +184,7 @@ frontEnd:
##
## frontEnd.imageTag -- The image tag of the frontend container.
##
imageTag
:
2.
0
.0
imageTag
:
2.
3
.0
##
## frontEnd.servicePort -- The port the frontend service will be exposed on via the loadbalancer.
##
...
...
@@ -222,6 +222,10 @@ frontEnd:
## frontEnd.OIDC_AUTH_SERVER_ID -- The authorization server id for OIDC.
##
OIDC_AUTH_SERVER_ID
:
##
## frontEnd.OVERWRITE_REDIRECT_URI -- The redirect uri for OIDC.
##
OVERWRITE_REDIRECT_URI
:
##
## frontEnd.resources -- See pod resourcing [ref](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/)
...
...
docs/authentication/oidc.md
View file @
748edcb8
...
...
@@ -154,7 +154,7 @@ ENV FRONTEND_SVC_CONFIG_MODULE_CLASS amundsen_application.oidc_config.OidcConfig
ENV APP_WRAPPER flaskoidc
ENV APP_WRAPPER_CLASS FlaskOIDC
ENV FLASK_OIDC_WHITELISTED_ENDPOINTS status,healthcheck,health
ENV
FLASK_OIDC_
SQLALCHEMY_DATABASE_URI sqlite:///sessions.db
ENV SQLALCHEMY_DATABASE_URI sqlite:///sessions.db
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment