add support for specifying GitHub teams

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-12-07 19:21:15 +01:00
parent 9d507ef5c8
commit a5f116ec1a
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ alertmanager_oauth_id: ~
alertmanager_oauth_secret: ~
alertmanager_oauth_cookie_secret: ~
alertmanager_oauth_gh_org: ~
alertmanager_oauth_gh_teams: []
alertmanager_oauth_cont_port: 8092
alertmanager_oauth_cont_tag: 'v5.0.0'
alertmanager_oauth_cont_image: 'quay.io/pusher/oauth2_proxy:{{ alertmanager_oauth_cont_tag }}'

View File

@ -37,6 +37,9 @@ services:
--email-domain='*'
--provider='github'
--github-org='{{ alertmanager_oauth_gh_org | mandatory }}'
{% if alertmanager_oauth_gh_teams %}
--github-team='{{ alertmanager_oauth_gh_teams | join(",") }}'
{% endif %}
--cookie-domain='{{ alertmanager_domain | mandatory }}'
--cookie-secret='{{ alertmanager_oauth_cookie_secret | mandatory }}'
--client-id='{{ alertmanager_oauth_id | mandatory }}'