diff --git a/charts/rstudio-workbench/.helmignore b/charts/rstudio-workbench/.helmignore index 1cbd52de..6b559e16 100644 --- a/charts/rstudio-workbench/.helmignore +++ b/charts/rstudio-workbench/.helmignore @@ -3,4 +3,4 @@ Makefile *.gotmpl # chart tests -tests/ +tests/* diff --git a/charts/rstudio-workbench/Chart.yaml b/charts/rstudio-workbench/Chart.yaml index 46d386ef..c66cd382 100644 --- a/charts/rstudio-workbench/Chart.yaml +++ b/charts/rstudio-workbench/Chart.yaml @@ -1,6 +1,6 @@ name: rstudio-workbench description: Official Helm chart for Posit Workbench -version: 0.8.7 +version: 0.8.8 apiVersion: v2 appVersion: 2024.09.1 icon: https://rstudio.com/wp-content/uploads/2018/10/RStudio-Logo-Flat.png diff --git a/charts/rstudio-workbench/README.md b/charts/rstudio-workbench/README.md index f79e701d..4cbf7f3e 100644 --- a/charts/rstudio-workbench/README.md +++ b/charts/rstudio-workbench/README.md @@ -1,6 +1,6 @@ # Posit Workbench -![Version: 0.8.7](https://img.shields.io/badge/Version-0.8.7-informational?style=flat-square) ![AppVersion: 2024.09.1](https://img.shields.io/badge/AppVersion-2024.09.1-informational?style=flat-square) +![Version: 0.8.8](https://img.shields.io/badge/Version-0.8.8-informational?style=flat-square) ![AppVersion: 2024.09.1](https://img.shields.io/badge/AppVersion-2024.09.1-informational?style=flat-square) #### _Official Helm chart for Posit Workbench_ @@ -24,11 +24,11 @@ To ensure a stable production deployment: ## Installing the chart -To install the chart with the release name `my-release` at version 0.8.7: +To install the chart with the release name `my-release` at version 0.8.8: ```{.bash} helm repo add rstudio https://helm.rstudio.com -helm upgrade --install my-release rstudio/rstudio-workbench --version=0.8.7 +helm upgrade --install my-release rstudio/rstudio-workbench --version=0.8.8 ``` To explore other chart versions, look at: diff --git a/charts/rstudio-workbench/tests/service_accounts_test.yaml b/charts/rstudio-workbench/tests/service_accounts_test.yaml new file mode 100644 index 00000000..87dc62ef --- /dev/null +++ b/charts/rstudio-workbench/tests/service_accounts_test.yaml @@ -0,0 +1,54 @@ +suite: Workbench Service Accounts +templates: + - configmap-general.yaml + - configmap-prestart.yaml + - configmap-secret.yaml + - configmap-session.yaml + - deployment.yaml +tests: + - it: should set the Workbench pod service account when the launcher is enabled + template: deployment.yaml + set: + launcher: + enabled: true + rbac: + serviceAccount: + name: "workbench-service-account" + asserts: + - equal: + path: "spec.template.spec.serviceAccountName" + value: "workbench-service-account" + - it: should set the Workbench pod service account when the launcher is not enabled + template: deployment.yaml + set: + launcher: + enabled: false + rbac: + serviceAccount: + name: "workbench-service-account" + asserts: + - equal: + path: "spec.template.spec.serviceAccountName" + value: "workbench-service-account" + - it: should use the default serviceAccount name when not set + template: deployment.yaml + asserts: + - equal: + path: "spec.template.spec.serviceAccountName" + value: "RELEASE-NAME-rstudio-workbench" + - it: should use the nameOverride as part of the serviceAccount name when nameOverride is set + template: deployment.yaml + set: + nameOverride: "posit-workbench" + asserts: + - equal: + path: "spec.template.spec.serviceAccountName" + value: "RELEASE-NAME-posit-workbench" + - it: should use the fullnameOverride as the serviceAccount name when fullnameOverride is set + template: deployment.yaml + set: + fullnameOverride: "posit-workbench" + asserts: + - equal: + path: "spec.template.spec.serviceAccountName" + value: "posit-workbench"