kubernetes_cluster: sync methods wrap async counterparts#6751
Open
ashishsuneja wants to merge 2 commits into
Open
kubernetes_cluster: sync methods wrap async counterparts#6751ashishsuneja wants to merge 2 commits into
ashishsuneja wants to merge 2 commits into
Conversation
added 2 commits
June 5, 2026 14:11
…methods kubernetes_management_benchmark.py: - Full implementation of Scenarios A, B, C on top of Zach's skeleton - _CleanStartSweep: guard clause, let it fail (no broad except) - Run(): guard clause for version resolution - All helpers: _RunScenarioA/B/C, _TimedAsync, _RunAsync, _OpSamples - _Results accumulator, _AggregateSamples, _OutlierSamples kubernetes_cluster.py: - AddNodepool: delegates to CreateNodePool for standard clusters - CreateNodePool/DeleteNodePool/UpgradeNodePool/UpdateCluster: sync wrappers calling *Async + WaitForOperation - Abstract methods: CreateNodePoolAsync, DeleteNodePoolAsync, UpgradeNodePoolAsync, UpdateClusterAsync, WaitForOperation, ResolveNodePoolVersions, GetNodePoolNames - BareMinor, AdjacentMinorBelow: version helper functions Tested: - 89 unit tests passing - EKS end-to-end: 99 pools, 100% success all 7 scenarios - pyink + lint-diffs clean
CreateNodePool, DeleteNodePool, UpgradeNodePool, UpdateCluster now call their *Async counterpart + WaitForOperation instead of raising NotImplementedError. Providers only need to implement *Async methods. Also adds try/except in _PostCreate for Python 3.14 pickling issue with event poller — logs warning and continues without polling rather than crashing PKB. Tested: - 4/4 sync wrapper tests passing - pyink + lint-diffs clean
c75a470 to
a5cb04f
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
CreateNodePool, DeleteNodePool, UpgradeNodePool, UpdateCluster now
call *Async + WaitForOperation instead of raising NotImplementedError.
Providers only need to implement the *Async methods.
Also adds try/except in _PostCreate for Python 3.14 pickling issue
with event poller.
How tested