-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update network concept doc with network peering #256
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,20 @@ The valid `NetworkID` range can be configured using the `apiserver`s | |
|
||
When deleting a `Network`, the corresponding `NetworkID` is cleaned up | ||
alongside the claiming `Network`. | ||
|
||
## Network Peering | ||
|
||
When creating network peering both `ironcore` `Network`s has to specify matching, | ||
`spec.peerings` referencing each other respectively. A `ironcore` `Network` can be peered with | ||
multiple `network`s in any namespcae. | ||
|
||
Once specified `apinetlet` `NetworkPeeringController` validates if all the specified `network`s are in | ||
`Available` state,they do exists and have matching `peerings`. | ||
|
||
If validation is successful, `apinetlet` `NetworkPeeringController` updates `ironcore` `Network` | ||
`status.peerings` with network peering `name`s and `spec.incomingPeerings` with valid | ||
incoming peerings. Also `apinetlet` `NetworkPeeringController` updates `ironcore-net` `Network` | ||
`spec.peeredIDs` with valid peered network's `providerID`'s. | ||
|
||
Once `ironcore-net` `Network` is updated with `spec.peeredIDs`, `metalnetlet` `NetworkController` | ||
updates `metalnet` `Network` `spec.peeredIDs` with corresponding `ironcore-net` `Network` `spec.peeredIDs` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regarding the peering status I opened an issue in the the |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we really need an own reconciler for the
Network
peering or wouldn't it be just enough to extend the existingNetwork
reconciler to ensure the peering information in theNetwork
in theapinet
group and update theironcore
Status once the peering was established.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.
Network peering is happening only with
Available
state networks, so I think we should have different reconciler for network peering. If we do it in existingNetwork
controller we have to wait till both networks comeAvailable
and then do peering in same reconcile loop will not be possible.@balpert89 do you have different thoughts for new controller?
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.
Yes my suggestion was to separate this in a dedicated controller because of two reasons:
Available
which is contradicting to the current network reconciler as this one is actually setting the status toAvailable
.