Skip to content

Conversation

@maru-ava
Copy link
Contributor

@maru-ava maru-ava commented Feb 4, 2025

Why this should be merged

By popular demand, tmpnet will once again attempt to reuse dynamically allocated API ports. The only difference is that this needs to be explicitly configured (via Network.DefaultRuntimeConfig.ReuseDynamicPorts) to allow for an error to be reported if a network so configured is started with a kube runtime.

How this works

  • Enables a dynamically-allocated API port to be saved in the node flags for use on a subsequent restart if ReuseDynamicPorts is set

How this was tested

CI

Need to be documented in RELEASES.md?

N/A

By popular demand, tmpnet will once again attempt to reuse dynamically
allocated API ports. The only difference is that this needs to be
explicitly configured (via
Network.DefaultRuntimeConfig.ReuseDynamicPorts) to allow for an error
to be reported if a network so configured is started with a kube
runtime.
@maru-ava maru-ava added the testing This primarily focuses on testing label Feb 4, 2025
@maru-ava maru-ava self-assigned this Feb 4, 2025
Copy link
Contributor

@iansuvak iansuvak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and thanks! I am guessing the error report if this is attempted to be used from Kube runtime would be handled elsewhere?

@maru-ava
Copy link
Contributor Author

maru-ava commented Feb 4, 2025

LGTM and thanks! I am guessing the error report if this is attempted to be used from Kube runtime would be handled elsewhere?

Yes, kube support is still in progress.

Copy link
Collaborator

@aaronbuchwald aaronbuchwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - what's the reason for removing this feature and now bringing it back?

@maru-ava maru-ava added this pull request to the merge queue Feb 4, 2025
Merged via the queue into master with commit 51d2ee6 Feb 4, 2025
22 checks passed
@maru-ava maru-ava deleted the tmpnet-save-port branch February 4, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing This primarily focuses on testing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants