Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/rstudio-connect/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rstudio-connect
description: Official Helm chart for Posit Connect
version: 0.8.26
version: 0.8.27
apiVersion: v2
appVersion: 2026.01.1
icon: https://raw.githubusercontent.com/rstudio/helm/main/images/posit-icon-fullcolor.svg
Expand Down
4 changes: 4 additions & 0 deletions charts/rstudio-connect/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.8.27

- Set `Server.Address` to match the Kubernetes Service

## 0.8.26

- Fix bug in chart where sharedStorage.subPath did not propagate to launcher-managed job volumeMounts.
Expand Down
6 changes: 3 additions & 3 deletions charts/rstudio-connect/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Posit Connect

![Version: 0.8.26](https://img.shields.io/badge/Version-0.8.26-informational?style=flat-square) ![AppVersion: 2026.01.1](https://img.shields.io/badge/AppVersion-2026.01.1-informational?style=flat-square)
![Version: 0.8.27](https://img.shields.io/badge/Version-0.8.27-informational?style=flat-square) ![AppVersion: 2026.01.1](https://img.shields.io/badge/AppVersion-2026.01.1-informational?style=flat-square)

#### _Official Helm chart for Posit Connect_

Expand Down Expand Up @@ -30,11 +30,11 @@ To ensure reproducibility in your environment and insulate yourself from future

## Installing the chart

To install the chart with the release name `my-release` at version 0.8.26:
To install the chart with the release name `my-release` at version 0.8.27:

```{.bash}
helm repo add rstudio https://helm.rstudio.com
helm upgrade --install my-release rstudio/rstudio-connect --version=0.8.26
helm upgrade --install my-release rstudio/rstudio-connect --version=0.8.27
```

To explore other chart versions, look at:
Expand Down
1 change: 0 additions & 1 deletion charts/rstudio-connect/lint/complex-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ config:
'RPackageRepository "RSPM"':
URL: https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
Server:
Address: http://localhost:3939
DataDir: /var/lib/rstudio-connect
RVersionScanning: false
RVersion:
Expand Down
1 change: 0 additions & 1 deletion charts/rstudio-connect/lint/simple-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ config:
'RPackageRepository "RSPM"':
URL: https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
Server:
Address: http://localhost:3939
DataDir: /var/lib/rstudio-connect
RVersionScanning: false
RVersion:
Expand Down
3 changes: 3 additions & 0 deletions charts/rstudio-connect/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- $defaultConfig = merge $defaultConfig (dict "Metrics" ( dict "PrometheusListen" (print ":" .Values.prometheus.port )))}}
{{- end }}
{{- end }}
{{- /* default Server.Address from the service name and port */}}
{{- $serverAddress := printf "http://%s:%v" (include "rstudio-connect.fullname" .) .Values.service.port }}
{{- $defaultConfig = merge $defaultConfig (dict "Server" (dict "Address" $serverAddress)) }}
{{- include "rstudio-library.config.gcfg" ( mergeOverwrite $defaultConfig $configCopy ) }}
{{- end -}}

Expand Down
31 changes: 31 additions & 0 deletions charts/rstudio-connect/tests/server_address_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
suite: test Server.Address auto-computation
templates:
- configmap.yaml
tests:
- it: should auto-compute Server.Address from the service name and port
documentIndex: 0
asserts:
- matchRegex:
path: data["rstudio-connect.gcfg"]
pattern: "Address = http://RELEASE-NAME-rstudio-connect:80"

- it: should use explicit config.Server.Address when provided
documentIndex: 0
set:
config:
Server:
Address: https://connect.example.com
asserts:
- matchRegex:
path: data["rstudio-connect.gcfg"]
pattern: "Address = https://connect.example.com"

- it: should reflect a custom service port in the computed address
documentIndex: 0
set:
service:
port: 8080
asserts:
- matchRegex:
path: data["rstudio-connect.gcfg"]
pattern: "Address = http://RELEASE-NAME-rstudio-connect:8080"
3 changes: 2 additions & 1 deletion charts/rstudio-connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ config:
'RPackageRepository "RSPM"':
URL: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
Server:
Address: http://localhost:3939
# Address is auto-computed from the service name and port.
# Override here if you need a custom value.
DataDir: /var/lib/rstudio-connect
Python:
Enabled: true
Expand Down