-
Notifications
You must be signed in to change notification settings - Fork 545
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
CSV deployment annotations not showing in final deployment/pods #1868
Comments
Hi @groeges, I assume the annotations are not present on the deployment pods as well? We definitely want to pass the annotations down from the CSV spec to the deployment. Here's where we extract the annotations from the CSV when creating the deployment: I believe @awgreene may have looked into a related bug recently? I don't see why here the annotations wouldn't be propagated downwards. |
Hi @exdx, Thanks for looking into this. I can confirm that the annotations do not appear on the ReplicaSet or the Pods. |
We looked into this a bit and were unable to reproduce in a local minikube cluster or on an OpenShift 4.6.1 cluster. Could you try reproducing this locally via cloning OLM and running |
Having done a bit more investigation from our side. Our CSV also has a
If we remove the |
Adding the annotations to the CSV metadata.annotations allows this to work with the |
Interesting, thanks for finding that. Seems like we are overwriting the annotations when a webhook defined somewhere. Will look into it. |
Closing this as I believe #1913 addresses the issue. If not, feel free to reopen. |
Bug Report
Any deployment template annotations defined in a CSV do not get included in the deployment when the operator is installed. Not sure whether this is a bug or something that is not currently possible. Any help/guidance on providing annotation for the deployment template would be greatly received.
What did you do?
Generated a CSV (not full csv definition show here) that contained some annotations,
spec.install.spec.deployments.spec.template.metadata.annotations
What did you expect to see?
When the operator was installed I expected to see the
annotations on the "Deployment" under spec.template.metadata.anotations, for example:
What did you see instead? Under which circumstances?
However, when the operator was installed the Deployment did not have these values.
Should I expect these annotations to be available on the Deployment.
If not, how would I get these annotations on the deployment
Environment
Possible Solution
Additional context
Applying CSV and installing operator on RedHat OpenShift 4.6
The text was updated successfully, but these errors were encountered: