-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
helm-operator fails to annotate some resources #6472
Comments
We also observe the same problem when we upgrade operator-sdk from version v1.22 to v1.28. We find this issue happens sometimes. We believe it could be an issue involved in the newer version of operator-sdk. I am considering if we can revert the operator-sdk version could be a fix of this problem. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Bug Report
Helm-operator fails to annotate some resources meaning that chart updates will fail.
Description
I've created an helm-operator to deploy nginx ingress controller. The first version of this operator was created using
operator-sdk
version 1.24.The command to create the operator was as follows:
Now I updated
operator-sdk
to version 1.29 and updated theingress-nginx
to version 4.6.1When I try to upgrade the first version of the operator to the second one everything seems to work except that the ingress controller never gets updated, giving the following error while the operator tried to reconcile:
So after investigating the issue it seems that the operator doesn't annotate the HorizontalPodAutoscaler resource with
while for example the Deployment resource gets annotated.
I've discovered this issue of missing annotations in HorizontalPodAutoscaler but might be happening with other resources.
Workaround to minimize bug impact
So what was happening invalidated upgrade of the operator, the only way to bypass the issue and be able to upgrade operator correctly and the ingress controllers as well was to disable autoscaling in my Custom Resource before updating the controller and only after everything getting updated as it should I enabled autoscaling again.
Environment
minikube
minikube setup with
operator-sdk
The text was updated successfully, but these errors were encountered: