Skip to content

Commit

Permalink
tsuru-api: Add support to set apps and jobs on tsuruConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Aug 12, 2024
1 parent 1c99ee7 commit e54afd1
Show file tree
Hide file tree
Showing 3 changed files with 13 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.3.1
version: 0.3.2

# 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
10 changes: 10 additions & 0 deletions charts/tsuru-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,13 @@ data:
cors:
{{ .Values.tsuruConfig.cors | toYaml | indent 6 }}
{{- end }}

{{ if .Values.tsuruConfig.apps }}
apps:
{{ .Values.tsuruConfig.apps | toYaml | indent 6 }}
{{- end }}

{{ if .Values.tsuruConfig.jobs }}
jobs:
{{ .Values.tsuruConfig.jobs | toYaml | indent 6 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/tsuru-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ tsuruConfig:

cors: {}
tag: {}
apps: {}
jobs: {}

# http://docs.tsuru.io/en/stable/reference/config.html#provisioner
provisioner: ""
Expand Down

0 comments on commit e54afd1

Please sign in to comment.