Skip to content

Conversation

@orozery
Copy link
Collaborator

@orozery orozery commented Feb 25, 2024

This PR adds support for updating import target ports.
It also adds support for automatic port allocation in CRD mode.

return nil
newPort := imp.Spec.TargetPort == 0

port, err := m.ports.Lease(imp.Name, imp.Spec.TargetPort)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you have the same import name in different namespaces? If so, they'd be treated as the same and it would be better to use a NamespacedName for the leasing inport

@orozery orozery force-pushed the portmanager branch 2 times, most recently from a03a864 to 8093784 Compare February 28, 2024 13:05
This commit adds support for updating import target ports.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
@orozery orozery merged commit e51184e into clusterlink-net:main Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

portmanager should identify conflicts between Imports Support port allocation for imports in CRD-mode

3 participants