Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport New Notebook UI configuration to 1.8 #364

Merged

Conversation

ca-scribner
Copy link
Contributor

(cherry pick of 3ec71e9 from main)

* Enable configuration of New Notebook UI

This commit adds configuration for:
* the default number of GPUs and the GPUs available
* the default PodDefaults selected
* the Toleration configurations available
* the Affinity configurations available

These configurations are enabled through newly exposed charm configs.  These configs are lightly validated to ensure they're valid yaml, but not validated enough to ensure things like Tolerations or Affinities are proper Kubernetes yaml

(cherry picked from commit 3ec71e9)
…ons (#361)

Previously, the spawner_ui_config.yaml was rendered with empty strings and lists being rendered as null values in the configuration file.  For example if the GPU vendors list was empty and the default vendor was `""`,  the config file would have (shown truncated):

```
  gpus:
    value:
      vendor:

      vendors:
```

whereas jupyter web app expected:
```
  gpus:
    value:
      vendor: ""

      vendors: []
```

This commit updates the template to ensure we always output the correct empty values.

Closes #360

(cherry picked from commit 211a37b)
@ca-scribner ca-scribner requested a review from a team as a code owner May 1, 2024 17:25
Copy link
Contributor

@NohaIhab NohaIhab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

followed the testing instructions in #345 using jupyter-ui from 1.8/edge/pr-364
LGTM

@kimwnasptd kimwnasptd merged commit 898aecf into track/1.8 May 2, 2024
14 checks passed
@kimwnasptd kimwnasptd deleted the KF-5616-backport-notebook-configuration-to-1.8 branch May 2, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants