-
Notifications
You must be signed in to change notification settings - Fork 71
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
feat: support custom subnet ID (--vnet-subnet-id
)
#238
Conversation
Pull Request Test Coverage Report for Build 8577118060Details
💛 - Coveralls |
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.
/test
Here is another place where subnet id is used (currently hardcoded, would need to change):
Now, I strongly suspect that on the node this affects only azure.json , and I can't think of why this would actually be needed. If this is indeed unused, it (quite possibly with some other fields) would be a prime candidate for removing from the contract. (This is very much related to contract discussion here Azure/AgentBaker#4208 (comment), cc @lilypan26)
|
Fixed this |
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.
/test
4cbb49f
to
467b676
Compare
As a result of moving most of the refactoring into this pr, the subnet per nodeclass pr became much smaller: #243 |
Please enter the commit message for your changes. Lines starting
5179ee9
to
5392c8f
Compare
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.
Left some comments. The main thing is likely re using options rather than client config for subnet id (apologies for not catching this earlier)
Co-authored-by: Alex Leites <[email protected]>
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.
BTW, where did the creation of cluster with custom subnet go? Or az-all-custom-subnet
(mentioned in description)?
I screwed up the rebase maybe idk where it went |
Co-authored-by: Alex Leites <[email protected]>
…aunch template from resolver
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.
/test
Co-authored-by: Alex Leites <[email protected]>
Co-authored-by: Alex Leites <[email protected]>
Co-authored-by: Alex Leites <[email protected]>
Co-authored-by: Alex Leites <[email protected]>
Co-authored-by: Alex Leites <[email protected]>
Co-authored-by: Alex Leites <[email protected]>
Co-authored-by: Alex Leites <[email protected]>
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.
/test
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.
LGTM, pending test success. Thanks for all the fixes!
…rovisioned on the nodes
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.
Approved, conditional on passing tests
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.
/test
--vnet-subnet-id
set on the systempool during cluster create--vnet-subnet-id
)
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.
Further testing showed some custom VNet related targets have issues, fixing in #148 (as it changes the flow anyway ...)
Fixes #199
Description
This pr solves the issue linked above and allows karpenter to tap into a specifed custom vnet + subnet id, via
--vnet-subnet-id
global flag. Both self-hosted and NAP deployments are expected to populate this from custom subnet specified for the cluster, which can be looked up from the system nodepool.How was this change tested?
Does this change impact docs?
Release Note