Skip to content

Commit b08619a

Browse files
committed
ensure REALM_ID is unique by using ns
1 parent 9b2536f commit b08619a

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

docs/deployment/bases/shinyproxy/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ kind: Kustomization
33

44
resources:
55
- resources/shinyproxy.rbac.yaml
6+
7+
configurations:
8+
- kustomizeconfig/shinyproxy.yaml
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
images:
2+
- path: spec/image
3+
kind: ShinyProxy

docs/deployment/overlays/2-clustered/shinyproxy-dept2/resources/shinyproxy.shinyproxy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: openanalytics.eu/v1
22
kind: ShinyProxy
33
metadata:
4-
name: shinyproxy-dept2
4+
name: shinyproxy
55
spec:
66
server:
77
secureCookies: true

src/main/kotlin/eu/openanalytics/shinyproxyoperator/components/PodTemplateSpecFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class PodTemplateSpecFactory {
7474
.build(),
7575
EnvVarBuilder()
7676
.withName("PROXY_REALM_ID")
77-
.withValue(shinyProxy.metadata.name)
77+
.withValue(shinyProxy.metadata.name + '-' + shinyProxy.metadata.namespace)
7878
.build()))
7979
.withVolumeMounts(VolumeMountBuilder()
8080
.withName("config-volume")

0 commit comments

Comments
 (0)