-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Controller creates a lot of runners #467
Comments
@vterdunov Hey! Thanks for reporting. How have you upgraded your CRDs? Exact steps or tools used would be helpful. Anyway, and unfortunately, you seem to have fallen into the same scenario as #418 (comment). Please read the thread and try upgrading the CRD, if that's the case. I haven't had chance to test it specifically, but I think Also note that I'm not talking about custom resources, like runner, runnerreplicaset, runnerdeployments. I'm talking about CRDs. Your custom resources, like runners, are very likely to be in invalid states already, and trying to |
@mumoshu thanks for quick answer! I've managed with the issue. I've updated the CRD (uninstall and install the new version). It seems to me that the need to update files should be reflected in documentations and release notes. Like prometheus-kube-stack do. |
@vterdunov Thanks for confirming! Ah, I missed you mentioned our helm chart so you probably used Then, you would have definitely had to use Re your suggestion- Yes, it should have been noted in the release note. Thanks! |
@mumoshu Yes, i use Flux2 to manage Helm charts. And yes, i use the official chart. Thanks again! |
The docs need to be updated, kubectl replace would have saved me. But I followed the docs here and ended up with endless runners being created and registered on Github. |
@hammadzz Thanks for reporting and sorry for your frustration. I hear you, but how should it be added to the UPGRADING doc? Do you think it's a good idea to mention about I thought you won't end up in such a situation as long as you started by reading and following the UPGRADING doc. |
@mumoshu my best guess is that doing apply instead of replace caused the issue. Even so I am not certain if it would always work, for example if resource names have changed. If they have changed then I assume replace would have overcome the issue I faced. In the end I had to uninstall the helm chart and delete all CRDs. One of them required this step to be able to delete it. kubectl patch crd/runners.actions.summerwind.dev -p '{"metadata":{"finalizers":[]}}' --type=merge |
@hammadzz Thanks! Could you let me reproduce it. What version of the chart were you using before the upgrade, and to which version did you upgrade it? |
I had the same issue with |
Hi, thanks for the project.
I faced with issue after the operator was updated using helm chart 0.10.4->0.11.0.
Controller started to create a lot of runners pods.
I have two runner deployemnts and corresponding autoscalers. There are identical, just for different repos. E.g:
The text was updated successfully, but these errors were encountered: