rstudio / helm

Helm Resources for RStudio Products
MIT License
36 stars 28 forks source link

WB: wrong default of `XDG_CONFIG_DIRS`? #607

Open pat-s opened 1 week ago

pat-s commented 1 week ago

XDG_CONFIG_DIRS is set to /mnt/dynamic:/mnt/session-configmap:/mnt/secret-configmap:/mnt/configmap:/mnt/load-balancer/.

However, as stated in https://docs.posit.co/ide/server-pro/rstudio_pro_sessions/customizing_session_settings.html, files like rstudio-prefs.json are only read when XDG_CONFIG_DIRS points to the directory containing them. This would actually be /mnt/session-configmap/rstudio.

The consequences are that files like config.session.rstudio-prefs.json are never read and result in an non-fatal error during session startup.

Setting

RSTUDIO_CONFIG_DIR: /mnt/session-configmap/rstudio

as a pod env var solves this.

(I've just discovered this recently and have to yet verify this in other instances. The fact falling over this now in a fresh install is a bit strange)