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

Hkatz/batch summary deployments api call #194

Merged

Conversation

hjkatz
Copy link
Contributor

@hjkatz hjkatz commented Aug 10, 2020

Why?

Improves the speed of the summarizer significantly, thus improving the speed of the dashboard significantly as well.

Harrison Katz and others added 30 commits February 28, 2020 15:17
The VPAUpdateMode field will allow us to use Goldilocks to create VPAs
that operate outside of "off" mode.
This commit adds a parameter to createVPA that allows the user to
specify the update mode for the VPA. The mechanism for specifying this
is the label goldilocks.fairwinds.com/vpaUpdateMode.
Kubernetes labels are based on DNS names, which are case insensitive.
However, the current label used to specify the update mode of created
VPAs, vpaUpdateMode, is case sensitive. This has caused a bug that
results in all VPAs being created in "Off" mode. This commit fixes that
bug by using a case-insensitive label to specify the vpa-update-mode.
Also:
 - Update reconciler to use VPA and Deployment objects
   directly (instead of names)
 - Update reconciler logging
 - Update/Add vpa tests
Also:
 - Update vpa tests
 - Fix vpa-opt-out logic
Co-Authored-By: Andrew Suderman <[email protected]>
Co-Authored-By: Andrew Suderman <[email protected]>
@codecov
Copy link

codecov bot commented Aug 10, 2020

Codecov Report

Merging #194 into master will decrease coverage by 0.27%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #194      +/-   ##
==========================================
- Coverage   52.35%   52.07%   -0.28%     
==========================================
  Files           8        8              
  Lines         573      601      +28     
==========================================
+ Hits          300      313      +13     
- Misses        247      257      +10     
- Partials       26       31       +5     
Impacted Files Coverage Δ
pkg/summary/summary.go 48.69% <66.66%> (-0.73%) ⬇️

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 746e30a...2360971. Read the comment docs.

Copy link
Member

@sudermanjr sudermanjr left a comment

Choose a reason for hiding this comment

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

small logging change

pkg/summary/summary.go Outdated Show resolved Hide resolved
@hjkatz hjkatz requested a review from sudermanjr August 10, 2020 17:37
@sudermanjr sudermanjr merged commit 92a09a0 into FairwindsOps:master Aug 11, 2020
hjkatz added a commit to hjkatz/goldilocks that referenced this pull request Aug 12, 2020
Hkatz/batch summary deployments api call (FairwindsOps#194)
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.

3 participants