Skip to content

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 doxiao and rjeberhard 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