-
Notifications
You must be signed in to change notification settings - Fork 30
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
Rename operator deployment #432
Rename operator deployment #432
Conversation
0de1528
to
babb2df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some questions:
- This is something we need to do just because the selector field was modified. Not something we'll need to do for each new version, right?
- Are we going to bump the operator to version 2 and that is the reason for
v2
postfix?
Also... maybe it's ok to not support the upgrade from the 0.1.0
version. That will simplify everything
Codecov Report
@@ Coverage Diff @@
## main #432 +/- ##
=======================================
Coverage 77.93% 77.93%
=======================================
Files 55 55
Lines 4252 4252
=======================================
Hits 3314 3314
Misses 793 793
Partials 145 145
Flags with carried forward coverage won't be shown. Click here to find out more. |
Yes, exactly. The selectors shouldn't change in the future.
I choose v2 in a sense of "v2-of-the-deployment", not of the operator. The name of the operator deployment should be an internal detail and shouldn't matter much.
That's also an option. What are your concerns about renaming the deployment? Does anything rely on the name of the deployment (note, I didn't rename the labels of the deployment, only the name)? Afaics nothing should break.. except one thing, if you install the operator via manifests, than the old deployment is not pruned. imho that's a general problem and will happen every time when we drop or rename any component (Service, ConfigMap, etc). |
Hm, yeah it also changes the pod name, then the blog post example output won't match anymore. Maybe it's not that important to support upgrades from 0.1.0, I don't know :) |
I think the It's not a strong opinion. |
I agree, I'm also not too happy about the rename with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some thoughts on it. ^^
Commit 7fa448a added additional labels to the operator deployment and its selector field. Unfortunately the selector field is immutable, and when OLM tries to patch the deployment while upgrading, Kubernetes will reject this update. A workaround is to rename the deployment, as suggested here: operator-framework/operator-lifecycle-manager#952 Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
cd5bd6d
to
a999f2a
Compare
Commit 7fa448a added additional labels to the operator deployment and its selector field.
Unfortunately the selector field is immutable, and when OLM tries to patch the deployment while upgrading, Kubernetes will reject this update.
A workaround is to rename the deployment, as suggested here: operator-framework/operator-lifecycle-manager#952