Skip to content

Commit 458160f

Browse files
committed
change openshift-oauth-proxy chart to be scoped to namespace
1 parent 29c6013 commit 458160f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

charts/openshift-oauth-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.1
18+
version: 0.1.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/openshift-oauth-proxy/templates/deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ spec:
4040
- '-http-address='
4141
- '-email-domain=*'
4242
- '-upstream={{ .Values.upstream }}'
43-
- '-openshift-sar={"resource": "namespaces", "verb": "get"}'
44-
- '-openshift-delegate-urls={"/": {"resource": "namespaces", "verb": "get"}}'
43+
- {{ printf "-openshift-sar={\"resource\": \"namespaces\", \"namespace\": \"%v\", \"verb\": \"get\", \"resourceName\":\"%v\"}" .Release.Namespace .Release.Namespace | squote }}
4544
- '-tls-cert=/etc/tls/private/tls.crt'
4645
- '-tls-key=/etc/tls/private/tls.key'
4746
- '-client-secret-file=/var/run/secrets/kubernetes.io/serviceaccount/token'

0 commit comments

Comments
 (0)