Skip to content

Commit

Permalink
modify nodeselector for gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte authored Sep 4, 2024
1 parent a364dba commit e72c1f8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/jupyter-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.14.0
version: 1.14.1

dependencies:
- name: library-chart
Expand Down
2 changes: 1 addition & 1 deletion charts/rstudio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.15.32
version: 1.16.0

dependencies:
- name: library-chart
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.11.42
version: 1.12.0

dependencies:
- name: library-chart
Expand Down
11 changes: 11 additions & 0 deletions utils/generate-children-charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@
}
}
child_schema["properties"]["resources"]["properties"]["limits"]["properties"]["nvidia.com/gpu"] = gpu_limits
node_selector = {
"type": "object",
"description": "NodeSelector",
"default": {},
"x-onyxia": {
"hidden": false,
"overwriteDefaultWith": "region.nodeSelector",
"overwriteSchemaWith": "nodeSelector-gpu.json"
}
}
child_schema["properties"]["nodeSelector"] = node_selector

with open(child_dir / "values.schema.json", "w") as file_out:
json.dump(child_schema, file_out, indent=2, sort_keys=False)
Expand Down

0 comments on commit e72c1f8

Please sign in to comment.