From 49bbb6cfe1fc3cd430f6df01481e14e14d102136 Mon Sep 17 00:00:00 2001 From: "Joshua C. Forest" Date: Wed, 11 Dec 2024 09:56:34 -0500 Subject: [PATCH 1/4] Add an RSW_TESTSUSER user --- ci/rstudio-workbench/install/user-create-values.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ci/rstudio-workbench/install/user-create-values.yaml diff --git a/ci/rstudio-workbench/install/user-create-values.yaml b/ci/rstudio-workbench/install/user-create-values.yaml new file mode 100644 index 00000000..a269de48 --- /dev/null +++ b/ci/rstudio-workbench/install/user-create-values.yaml @@ -0,0 +1,8 @@ +license: + file: + secret: pwb-license + secretKey: pwb.lic + +userCreate: true +userName: jforest-test +userPassword: djhkjhij870jjbJye From 024f4aae4aa6e6707c548a1c200828a774c2195f Mon Sep 17 00:00:00 2001 From: "Joshua C. Forest" Date: Wed, 11 Dec 2024 10:20:23 -0500 Subject: [PATCH 2/4] create a serviceaccount with a custom name --- .../install/basic-service-account-values.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ci/rstudio-workbench/install/basic-service-account-values.yaml diff --git a/ci/rstudio-workbench/install/basic-service-account-values.yaml b/ci/rstudio-workbench/install/basic-service-account-values.yaml new file mode 100644 index 00000000..698d48f0 --- /dev/null +++ b/ci/rstudio-workbench/install/basic-service-account-values.yaml @@ -0,0 +1,10 @@ +license: + file: + secret: pwb-license + secretKey: pwb.lic + +rbac: + create: true + serviceAccount: + name: test-sa + create: true From 70a7b87ec5c8686dd44dd2fb52b3d8c66cd67662 Mon Sep 17 00:00:00 2001 From: "Joshua C. Forest" Date: Wed, 11 Dec 2024 10:58:57 -0500 Subject: [PATCH 3/4] try some ingress vals --- .../install/basic-ingress-values.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ci/rstudio-workbench/install/basic-ingress-values.yaml diff --git a/ci/rstudio-workbench/install/basic-ingress-values.yaml b/ci/rstudio-workbench/install/basic-ingress-values.yaml new file mode 100644 index 00000000..00f08bef --- /dev/null +++ b/ci/rstudio-workbench/install/basic-ingress-values.yaml @@ -0,0 +1,14 @@ +license: + file: + secret: pwb-license + secretKey: pwb.lic + +ingress: + enabled: true + annotations: + kubernetes.io/ingress.class: traefik + + hosts: + - host: workbench.rstudio.com + paths: + - path: /test/ From 3a3c3908e46cec85bc2679c9b964869f490a6a99 Mon Sep 17 00:00:00 2001 From: "Joshua C. Forest" Date: Wed, 11 Dec 2024 11:48:52 -0500 Subject: [PATCH 4/4] lets see if hte launcher template values from the lint tests work --- .../install/launcher-template-values.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 ci/rstudio-workbench/install/launcher-template-values.yaml diff --git a/ci/rstudio-workbench/install/launcher-template-values.yaml b/ci/rstudio-workbench/install/launcher-template-values.yaml new file mode 100644 index 00000000..c21e71d0 --- /dev/null +++ b/ci/rstudio-workbench/install/launcher-template-values.yaml @@ -0,0 +1,58 @@ +license: + file: + secret: pwb-license + secretKey: pwb.lic + +config: + sessionSecret: + example-file.json: '{"some-contents": "test"}' +launcher: + enabled: true + useTemplates: true + templateValues: + service: + type: ClusterIP + annotations: + five: six + job: + ttlSecondsAfterFinished: 99 + annotations: + seven: eight + labels: + nine: ten + pod: + serviceAccountName: test + annotations: + one: two + labels: + three: four + volumes: + - name: test + emptyDir: {} + volumeMounts: + - name: test + mountPath: /tmp/mnt + env: + - name: SOME_ENV_VAR + value: the-env-var-value + securityContext: + runAsUser: 999 + defaultSecurityContext: + fsGroupChangePolicy: "Always" + runAsGroup: 999 + containerSecurityContext: + privileged: false + tolerations: + - key: "kubernetes.azure.com/scalesetpriority" + operator: "Equal" + value: "spot" + effect: "NoSchedule" + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.azure.com/scalesetpriority" + operator: In + values: + - "spot"