Adding service account to work with oauth proxy for monitor dashboard.

This commit is contained in:
Adam Saleh 2020-10-21 08:34:47 +02:00
parent 687a63a549
commit d95cb43414
2 changed files with 12 additions and 0 deletions

View file

@ -40,6 +40,11 @@
file: service.yml
objectname: service.yml
- role: openshift/object
app: monitor-dashboard
file: route_serviceaccount.yml
objectname: route_serviceaccount.yml
# Route already present, will figure updating later
# - role: openshift/object
# app: monitor-dashboard

View file

@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: monitor-dashboard-web
annotations:
serviceaccounts.openshift.io/oauth-redirectreference.primary: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"monitor-dashboard-web"}}'