8000 owls-87625 - Remove stranded old named node port service for the domain when deleting and replacing service by ankedia · Pull Request #2208 · oracle/weblogic-kubernetes-operator · GitHub
[go: up one dir, main page]

Skip to content

owls-87625 - Remove stranded old named node port service for the domain when deleting and replacing service #2208

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

Merged
merged 4 commits into from
Feb 23, 2021

Conversation

ankedia
Copy link
Member
@ankedia ankedia commented Feb 19, 2021

owls-87625 - Operator 3.0.1 version created external NodePort service with "-external" suffix. Operator 3.1.x creates the external NodePort service with shorter name with "-ext" suffix. This is causing an issue when upgrading the Operator from 3.0.1 to 3.1.1 and changing the restartVersion. This is because the port for the external NodePort service created by Operator 3.1.1 is already in use by the NodePort service created by Operator 3.0.1 with the old name (with "-external" suffix).
This change removes stranded old named node port service during the service replace call by listing services of NodePort type created by the Operator for this particular domain. It deletes the node port service returned by the list call and then replaces it with the new name. Integration test results - https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/4105/

@ankedia ankedia requested review from rjeberhard and doxiao February 19, 2021 01:24
Copy link
Member
@doxiao doxiao left a comment

Choose a reason for hiding this comment

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

LGTM.

@ankedia ankedia requested a review from alai8 February 20, 2021 00:18
@rjeberhard rjeberhard merged commit ed00812 into release/3.1.4 Feb 23, 2021
@ankedia ankedia deleted the owls_87625_upgrade_fix branch February 23, 2021 15:00
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.

4 participants
0