Skip to content
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

fix: Remove all nodePorts in the propagated service manifests #287

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

Fei-Guo
Copy link
Contributor

@Fei-Guo Fei-Guo commented Sep 14, 2022

Description of your changes

All NodePorts allocated by the hubcluster can conflict with the available port numbers in any member cluster, which will cause applying service object fail in the member cluster. We should clear all NodePorts in the service spec in the work manifest list.

How has this code been tested

Run e2e manually and verified that the LB service will use the nodePort allocated by the member cluster after it is created in the member cluster.

Modify the integration test to test the added code.

test/integration/manifests/resources/test-lb-service.yaml Outdated Show resolved Hide resolved
test/integration/utils_test.go Outdated Show resolved Hide resolved
test/integration/utils_test.go Outdated Show resolved Hide resolved
test/integration/manifests/resources/test-lb-service.yaml Outdated Show resolved Hide resolved
@ryanzhang-oss ryanzhang-oss merged commit 3d09ebe into main Sep 14, 2022
@Fei-Guo Fei-Guo deleted the fguo-dev2 branch September 20, 2022 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants