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

feat: Add support for HPA v2 (autoscaling/v2) #411

Merged
merged 1 commit into from
May 30, 2022
Merged

feat: Add support for HPA v2 (autoscaling/v2) #411

merged 1 commit into from
May 30, 2022

Conversation

EppO
Copy link
Contributor

@EppO EppO commented May 13, 2022

Currently health check for HorizontalPodAutoscaler is limited to v1, v2beta1 and v2beta2.
This MR adds support for v2 which is the default HPA API version on Kubernetes 1.23+

Without this MR, ArgoCD will fail to sync any applications that use HPA in Kubernetes 1.23+ clusters.

Signed-off-by: Florent Monbillard <f.monbillard@gmail.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented May 13, 2022

Codecov Report

Merging #411 (eef0669) into master (b855894) will increase coverage by 0.14%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master     #411      +/-   ##
==========================================
+ Coverage   54.52%   54.66%   +0.14%     
==========================================
  Files          41       41              
  Lines        3059     3073      +14     
==========================================
+ Hits         1668     1680      +12     
- Misses       1228     1229       +1     
- Partials      163      164       +1     
Impacted Files Coverage Δ
pkg/health/health_hpa.go 82.75% <85.71%> (+0.56%) ⬆️

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 b855894...eef0669. Read the comment docs.

@Var091
Copy link

Var091 commented May 17, 2022

Hi, do we have any updates on this one? can be this merged already?

@ghost
Copy link

ghost commented May 27, 2022

please some one approve this MR, this is important for us :)

Copy link
Contributor

@alexmt alexmt 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! Cherry-picking it into v2.4

@alexmt alexmt merged commit 7493226 into argoproj:master May 30, 2022
@EppO EppO deleted the hpa-v2 branch May 31, 2022 15:36
@flaviolemos78
Copy link

Hi @alexmt any plans to also include this on v2.3?

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.

4 participants