Skip to content
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

Lots of Helm release-related Secrets being created despite low release history setting in code #145

Open
bcbrockway opened this issue Jul 2, 2024 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@bcbrockway
Copy link

I can see that the Helm release history is set to 2 here but we are still seeing an enormous number of Secrets being created in our Milvus namespaces which is triggering our quota alerts:

image

Any idea what might be going on here?

@haorenfsa haorenfsa self-assigned this Jul 3, 2024
@haorenfsa haorenfsa added the bug Something isn't working label Jul 3, 2024
@haorenfsa
Copy link
Collaborator

haorenfsa commented Jul 3, 2024

Thank you for the feedback @bcbrockway. Could you provide your milvus CR & the logs of milvus-operator during that period?

@bcbrockway
Copy link
Author

Hi @haorenfsa, as you can see from the logs, we had an immutable field issue with some StatefulSets at the time which we eventually resolved by orphan-deleting them and letting the milvus-operator reapply the releases, but I would still expect it to only keep 2 sh.helm.release.v1 secrets per StatefulSet.

Explore-logs-2024-07-03 08_54_03.txt

@haorenfsa
Copy link
Collaborator

@bcbrockway Looks like the helm pkg overwrite the MaxHistory with the value in Upgrade.MaxHistory struct when doing upgrade
image

I check the helm command's code, HelmSetting.MaxHistory is only useful when using helm command. When using it as a pkg, we should directly set Upgrade.HaxHistory. Otherwise it's considered as 0 (which means unlimited)
image
image

@haorenfsa haorenfsa added the good first issue Good for newcomers label Jul 4, 2024
@haorenfsa haorenfsa added this to the v1.2.0 milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants