The admin has the ability to configure most parts of the UI to some extent.
The UI configuration section has this structure by default:
ui:
gpuConfig:
type: dropdown
gpuDropdown:
start: 1
end: 10
imageConfig:
blacklist: [unavailable_image1:v0.1, unavailable_image2:v0.2]
sort: 'name'
sizeConfig:
enabled: false
envVarConfig:
enabled: true
categories:
- name: Amazon S3
variables:
- name: AWS_ACCESS_KEY_ID
type: password
- name: AWS_SECRET_ACCESS_Key
type: password
The information contained in the ui configuration section is available through the API. If for example, your users did not need the GPU section of the spawner, you can disable it with:
gpuConfig:
enabled: false
Similarly, if you wanted to make certain images, (ex. minimal-notebook:v0.1 and spark-notebook:v0.0.4) unavailable to users, it is possible to blacklist these images with:
imageConfig:
blacklist: [minimal-notebook:v0.1, spark-notebook:v0.0.4]
Currently the UI configuration section is able to expose the following information through the API:
- Black/White listing the images (i.e. ODH deploys all imagestreams and admin can influence what is visible)
whitelist: {[image1, image2, ...]}
blacklist: {[image1, image2, ...]}
- Sorting of the images (by name, version)
sort: {'name' || 'version'}
- enable/disable
enabled: {true || false}
Currently, you can set 3 different visual styles of the GPU. For each of these styles, it is neccessary to set the limits for GPU amount. These limits are also checked against the actual amount of GPUs on the node, to prevent requesting more GPUs than are available.
- enable/disable
enabled: {true || false}
- Change visual style to either:
- Dropdown (With a set range of values)
type: dropdown gpuDropdown: range: start: {int} end: {int}
- Checkbox (With a set number)
type: checkbox gpuCheckbox: value: {int}
- Input (with a set limit)
type: input gpuInput: limit: {int}
The environment variable (EnvVar
) field mainly allows the admin to set up 'EnvVar
Groups', which show up in the UI as choices in the EnvVar
dropdown.
If an EnvVar
is of type 'password' it defaults as a secret in the UI, hiding its text and it gets written in a secret instead of a configmap.
- enable/disable
enabled: {true || false}
- A list of environment variables for "frequently used" environment variable dropdown. (Type can be omitted, in which case it defaults to text)
categories:
- name: {string}
variables:
- name: {string}
type: {"password" || "text"}
- name: {string}
type: {"password" || "text"}