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

fix: (controller boot) Do not cache all cluster Secrets - fetch them on demand. Fixes #798 #829

Merged
merged 1 commit into from Nov 9, 2020

Conversation

mrak
Copy link
Contributor

@mrak mrak commented Nov 9, 2020

Using a list cache of secrets is not needed as we do not need to react
to any changes and we can always fetch the individual secrets we need
for analysis arguments when the time comes. For large kubernetes
clusters with thousands of secrets this causes the argo-rollouts
controller to be unbootable.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • This file does not exist My organization is added to USERS.md.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov-io
Copy link

codecov-io commented Nov 9, 2020

Codecov Report

Merging #829 (fa15892) into master (e31e30e) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #829      +/-   ##
==========================================
- Coverage   82.09%   82.09%   -0.01%     
==========================================
  Files          98       98              
  Lines        8523     8522       -1     
==========================================
- Hits         6997     6996       -1     
  Misses       1085     1085              
  Partials      441      441              
Impacted Files Coverage Δ
analysis/controller.go 52.23% <ø> (-0.71%) ⬇️
analysis/analysis.go 85.83% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e31e30e...fa15892. Read the comment docs.

@mrak mrak changed the title fix(controller boot) Do not cache all cluster Secrets - fetch them on demand. Fixes #798 fix: (controller boot) Do not cache all cluster Secrets - fetch them on demand. Fixes #798 Nov 9, 2020
Using a list cache of secrets is not needed as we do not need to react
to any changes and we can always fetch the individual secrets we need
for analysis arguments when the time comes. For large kubernetes
clusters with thousands of secrets this causes the argo-rollouts
controller to be unbootable.

Co-authored-by: Jason Yanowitz <jason.yanowitz@getbraintree.com>
Signed-off-by: Eric Mrak <emrak@paypal.com>
Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants