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

Remove old flink-app-hash selector from generic service #211

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

mwylde
Copy link
Contributor

@mwylde mwylde commented Aug 4, 2020

#209 changed how we associate pods with services; previously we used the flink-app-hash label, but in order to decouple hashes from deployments this was changed to the random pod-deployment-selector.

For versioned services, this change did not cause any issues, as new versioned services are created for each deploy. The generic (non-versioned) service, however is kept for the lifetime of an application and so needs to be "upgraded" to the new way of selecting pods. #209 included support for upgrading existing services by adding the pod-deployment-selector label. However, it did not remove the existing flink-app-hash label. This broke generic services for applications that had been deployed on a previous version of the operator.

This PR fixes that, by removing the flink-app-hash label during the deploy process.

@anandswaminathan
Copy link
Contributor

Looks good. Want to add a unit test. Very hard to catch if someone removes this.

@mwylde
Copy link
Contributor Author

mwylde commented Aug 4, 2020

It's actually fine if this gets removed in the future. It's only needed immediately after upgrading the operator from pre-#209.

@mwylde mwylde merged commit d377eb1 into master Aug 4, 2020
@mwylde mwylde deleted the micah_fix_upgrade branch August 4, 2020 21:05
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