-
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-sdk/upgrade-force annotation value is not actually parsed #2884
Comments
Hi @anfanycw, According to the error see |
@camilamacedo86 ParseBool accepts 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False. “T” was just one of the cases I tried besides the original from the README (True) before looking at the code. |
I will do a test to check it as soon as possible. A possible way to verify that and/or may its fix is by creating a unit test in the to cover this code and ensure that it will work. I do not think that it has been covered by tests. However, your collaboration would be very welcome as well. Please, if you wish and have time feel free to come up with the fix and tests in a PR. |
The problem is that we need to pass https://github.com/operator-framework/operator-sdk/blob/master/pkg/helm/controller/reconcile.go#L336 |
greetings, cr managed by helm operator:
log:
I don't have permission to reopen this ticket. let me know if I should create a new one. thanks! |
Hi @dian-xh, I will be working on in this fix, thank you for let us know. |
@dian-xh I am not able to reproduce this issue in v0.17.1. The CR being reconciled is being created from your CSV's |
Yes |
HI @dian-xh, I am trying to reproduce the issue faced by you and I also could not face the error. So, lets keeping this close as history and track your scenario in the new issue because it shows no be tthe same case. I also try to check your project and I will add all info in this new issue. Could you please follow up there? See; #3144 |
@camilamacedo86 sounds good. thanks! |
Bug Report
What did you do?
operator-sdk new ...
What did you expect to see?
Expected to see all existing helm chart resources to be replaced. In this case, a new set of master and worker pods for locust.
What did you see instead? Under which circumstances?
Only the resource applicable to the updated config value was changed. In this case I decremented the worker replica count which only replaced the master pod and destroyed one worker pod. This debug statement showed up in the operator logs:
This is when I noticed this: https://github.com/operator-framework/operator-sdk/pull/2773/files#diff-66372f3cbaf2399b5e8895c882e4eadfR336.
force
is not being parsed.Environment
Helm
Possible Solution
On line: https://github.com/operator-framework/operator-sdk/pull/2773/files#diff-66372f3cbaf2399b5e8895c882e4eadfR336.
force
is not being parsed.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: