3scale / apicast-operator

Apache License 2.0
8 stars 15 forks source link

change operator deployment name #168

Closed eguzki closed 2 years ago

eguzki commented 2 years ago

Deployment label selector field is inmutable. Apicast operator specific labels were added in #164, effectively changing the existing labels from 2.11.0 to 2.11.1. On upgrade scenarios, OLM will try to patch/update a field that is inmutable. Hence, it fails.

It has already been reported here: https://github.com/operator-framework/operator-lifecycle-manager/issues/952

The fix is about changing the name of the deployment. On upgrade scenarios, OLM will detect the deployment name change and will delete the previous deployment and CREATE (not update or patch) the new deployment with the new labels in the selector successfully.