From e6b76d2dc81ab0c1e8a77bb0b273c79a2ca0a944 Mon Sep 17 00:00:00 2001 From: Alen Komljen Date: Fri, 19 Jun 2020 09:56:17 +0200 Subject: [PATCH 1/2] Add default interval the group cache should refresh at Signed-off-by: Alen Komljen --- incubator/buzzfeed-sso/Chart.yaml | 2 +- incubator/buzzfeed-sso/templates/auth-deployment.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/incubator/buzzfeed-sso/Chart.yaml b/incubator/buzzfeed-sso/Chart.yaml index bec5c0057d34..6ca92f0723f3 100644 --- a/incubator/buzzfeed-sso/Chart.yaml +++ b/incubator/buzzfeed-sso/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Single sign-on for your Kubernetes services using Google OAuth name: buzzfeed-sso -version: 0.2.2 +version: 0.2.3 appVersion: 2.1.0 home: https://github.com/buzzfeed/sso sources: diff --git a/incubator/buzzfeed-sso/templates/auth-deployment.yaml b/incubator/buzzfeed-sso/templates/auth-deployment.yaml index 5a879e31c935..440035193068 100644 --- a/incubator/buzzfeed-sso/templates/auth-deployment.yaml +++ b/incubator/buzzfeed-sso/templates/auth-deployment.yaml @@ -101,6 +101,8 @@ spec: - name: PROVIDER_GOOGLE_GOOGLE_CREDENTIALS value: /creds/sso-serviceaccount.json {{- end }} + - name: PROVIDER_GOOGLE_GROUPCACHE_INTERVAL_REFRESH + value: 10m - name: PROVIDER_GOOGLE_CLIENT_ID valueFrom: secretKeyRef: From 3e1bc140eefc26648f41341da5a681d262e58c5e Mon Sep 17 00:00:00 2001 From: Alen Komljen Date: Fri, 19 Jun 2020 10:07:18 +0200 Subject: [PATCH 2/2] Move env variable into adminEmail if else block Signed-off-by: Alen Komljen --- incubator/buzzfeed-sso/templates/auth-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incubator/buzzfeed-sso/templates/auth-deployment.yaml b/incubator/buzzfeed-sso/templates/auth-deployment.yaml index 440035193068..7e0cf2663e06 100644 --- a/incubator/buzzfeed-sso/templates/auth-deployment.yaml +++ b/incubator/buzzfeed-sso/templates/auth-deployment.yaml @@ -100,9 +100,9 @@ spec: value: {{ .adminEmail | quote }} - name: PROVIDER_GOOGLE_GOOGLE_CREDENTIALS value: /creds/sso-serviceaccount.json - {{- end }} - name: PROVIDER_GOOGLE_GROUPCACHE_INTERVAL_REFRESH value: 10m + {{- end }} - name: PROVIDER_GOOGLE_CLIENT_ID valueFrom: secretKeyRef: