-
Notifications
You must be signed in to change notification settings - Fork 7
Updated virtual-kubelet-configuration file to handle podCIDR #25
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -64,6 +64,10 @@ virtualNode: | |||||||||||||||||
| # - resourceType: nvidia.com/gpu | ||||||||||||||||||
| # model: a100 | ||||||||||||||||||
| # available: 1 | ||||||||||||||||||
| # podCIDR: | ||||||||||||||||||
| # subnet: 10.42.122.0/24 | ||||||||||||||||||
| # minIP: 2 | ||||||||||||||||||
| # maxIP: 250 | ||||||||||||||||||
|
Comment on lines
+67
to
+70
|
||||||||||||||||||
| # podCIDR: | |
| # subnet: 10.42.122.0/24 | |
| # minIP: 2 | |
| # maxIP: 250 | |
| # podCIDR: | |
| # subnet: 10.42.122.0/24 | |
| # minIP: 2 | |
| # maxIP: 250 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block only checks that
virtualNode.podCIDRexists, but it will still renderSubnet/MinIP/MaxIPas<no value>if any sub-keys are missing (e.g.,podCIDR: {}or partially specified values), which can produce an invalid YAML config for the consumer. Consider switching towithonpodCIDR(empty maps evaluate false) and/or guarding/requiring the individual fields before rendering them; also quotingSubnetwould align with the rest of the template’s string handling.