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

Introduce ScalerReconciler and refactor HPA reconciliation #1211

Merged
merged 4 commits into from
Jun 8, 2022

Conversation

aryan9600
Copy link
Member

@aryan9600 aryan9600 commented Jun 6, 2022

This PR introduces a new interface ScalerReconciler, which provides methods to reconcile a scaler like HPAs, or KEDA ScaledObjects. For now, the existing HPA reconciliation logic has been refactored to implement this, is moved out of the deployment controller and is used directly in the main reconciliation loop.

@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2022

Codecov Report

Merging #1211 (3fa1892) into main (4ea5a48) will decrease coverage by 0.19%.
The diff coverage is 73.23%.

❗ Current head 3fa1892 differs from pull request most recent head e0e2d5c. Consider uploading reports for the commit e0e2d5c to get more accurate results

@@            Coverage Diff             @@
##             main    #1211      +/-   ##
==========================================
- Coverage   54.96%   54.77%   -0.20%     
==========================================
  Files          79       80       +1     
  Lines        6642     6839     +197     
==========================================
+ Hits         3651     3746      +95     
- Misses       2418     2514      +96     
- Partials      573      579       +6     
Impacted Files Coverage Δ
pkg/canary/deployment_controller.go 44.87% <ø> (-17.88%) ⬇️
pkg/canary/factory.go 0.00% <0.00%> (ø)
pkg/controller/scheduler.go 46.60% <50.00%> (+0.01%) ⬆️
pkg/canary/hpa_reconciler.go 79.45% <79.45%> (ø)

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 4ea5a48...e0e2d5c. Read the comment docs.

Sanskar Jaiswal added 3 commits June 7, 2022 13:43
…troller

Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
@stefanprodan stefanprodan added the kind/enhancement Improvement request for an existing feature label Jun 7, 2022
Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>

for objectmeta as well
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @aryan9600 🏅

@stefanprodan stefanprodan merged commit 4d2a03c into fluxcd:main Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvement request for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants