-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dryRun, Adapt VM Mac Address allocation to support dryRun (#327)
* dryRun, Adapt VM Mac Address allocation to support dryRun In case of "server" dryRun ("All" if used by controller runtime) we do want to return an updated server response, which allocates Mac Address, but without doing side effects. Fix the flow to support it. Note that the Mac pool head is changed, so calling twice dryRun won't yield the same Mac Address in the response. It is needed because in case there are multiple Mac Addresses in the same request, we should not give the same Mac even on dryRun, hence the mac pool head should be updated. Signed-off-by: Or Shoval <[email protected]> * tests, Add vm dry run tests Signed-off-by: Or Shoval <[email protected]> * dryRun, Adapt pod allocation to dryRun Signed-off-by: Or Shoval <[email protected]>
- Loading branch information
Showing
7 changed files
with
155 additions
and
88 deletions.
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
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
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
Oops, something went wrong.