Skip to content

Commit

Permalink
tsuru-api: Add support to be more flexible on auth configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Jul 21, 2023
1 parent 893e1a8 commit 23c243c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/tsuru-api/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.10
version: 0.2.11

# 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
4 changes: 4 additions & 0 deletions charts/tsuru-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ data:
{{- end }}

auth:
{{- if .Values.tsuruConfig.authBlock }}
{{ .Values.tsuruConfig.authBlock | toYaml | indent 6 }}
{{- else }}
scheme: {{ .Values.tsuruConfig.auth.scheme }}
user-registration: {{ .Values.tsuruConfig.auth.userRegistration }}
{{- with .Values.tsuruConfig.auth.maxSimultaneousSessions }}
Expand All @@ -70,6 +73,7 @@ data:
info-url: {{ .Values.tsuruConfig.auth.oauth.infoURL }}
collection: {{ .Values.tsuruConfig.auth.oauth.collection }}
callback-port: {{ .Values.tsuruConfig.auth.oauth.callbackPort }}
{{- end }}
{{- end }}

queue:
Expand Down
2 changes: 2 additions & 0 deletions charts/tsuru-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ tsuruConfig:
collection:
callbackPort:

authBlock: {}

# http://docs.tsuru.io/en/stable/reference/config.html#config-queue
queue:
mongodbURL: "localhost:27017"
Expand Down

0 comments on commit 23c243c

Please sign in to comment.