-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationteam: connectPosit Connect related issuePosit Connect related issueteam: workbenchPosit Workbench related issuePosit Workbench related issue
Description
It is a common task for admins to customize pip settings, particularly the index-url.
Option 1 - first-class support
For example:
Workbench
# values.yaml
config:
session:
repos.conf:
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
CRAN: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
# pip.conf should be written to /etc/pip.conf
pip.conf: |
[global]
index-url = https://pypi.org/simpleConnect
I am less sure on what the correct approach for Connect should be, since current config key in the values.yaml maps directly to Connect config file.
Option 2 - document examples
Workbench
# values.yaml
extraObjects:
- apiVersion: v1
kind: ConfigMap
metadata:
name: pip-config-workbench
data:
pip.conf: |
[global]
index-url = https://pypi.org/simple
launcher:
enabled: true
useTemplates: true
templateValues:
pod:
volumes:
- name: pip-config-volume
configMap:
name: pip-config-workbench
volumeMounts:
- mountPath: /etc/pip.conf
name: pip-config-volume
subPath: pip.confConnect
# values.yaml
extraObjects:
- apiVersion: v1
kind: ConfigMap
metadata:
name: pip-config-connect
data:
pip.conf: |
[global]
index-url = https://pypi.org/simple
launcher:
enabled: true
useTemplates: true
templateValues:
pod:
volumes:
- name: pip-config-volume
configMap:
name: pip-config-connect
volumeMounts:
- mountPath: /etc/pip.conf
name: pip-config-volume
subPath: pip.confReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationteam: connectPosit Connect related issuePosit Connect related issueteam: workbenchPosit Workbench related issuePosit Workbench related issue