Set up Mage Pro workspaces for organizing your own personal environment.
USER_CODE_PATH
USER_CODE_PATH
environment variable in the base project (Mage Pro management portal), update your Kubernetes configuration:
SHARE_SECRETS_ACROSS_WORKSPACES
then set the value to 1
to enable this feature. This will
allow developers to share their secrets across different workspaces within a cluster.
INHERIT_ENV_VARS
environment variable to 1
to enable this feature.
This will allow all system environment variables to be shared between the main
Mage environment and workspaces within a cluster.
USER_DEFINED_VARS
environment variable with a comma-separated list of variable names.
This provides flexibility to include specific configuration values needed across workspaces.
get_custom_configs
method that returns a dictionary of configurations. This is where you can set up environment variables, modify container configurations, and prepare any necessary resources. The script executes before any workspace services start, making it ideal for initial setup and configuration tasks.