Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Farbos <[email protected]>
  • Loading branch information
afarbos committed Sep 6, 2024
1 parent 4d25c5a commit 0ae8020
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pkg/health/health_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestHPA(t *testing.T) {
assertAppHealth(t, "./testdata/hpa-v2beta1-healthy-disabled.yaml", HealthStatusHealthy)
assertAppHealth(t, "./testdata/hpa-v2beta1-healthy.yaml", HealthStatusHealthy)
assertAppHealth(t, "./testdata/hpa-v1-degraded.yaml", HealthStatusDegraded)
assertAppHealth(t, "./testdata/hpa-v1-healthy.yaml", HealthStatusHealthy)
assertAppHealth(t, "./testdata/hpa-v1-degraded-partially.yaml", HealthStatusDegraded)
assertAppHealth(t, "./testdata/hpa-v1-healthy-toofew.yaml", HealthStatusHealthy)
assertAppHealth(t, "./testdata/hpa-v1-progressing.yaml", HealthStatusProgressing)
assertAppHealth(t, "./testdata/hpa-v1-progressing-with-no-annotations.yaml", HealthStatusProgressing)
Expand Down
File renamed without changes.
30 changes: 15 additions & 15 deletions pkg/health/testdata/hpa-v2-degraded-partially.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ spec:
targetCPUUtilizationPercentage: 80
status:
conditions:
- lastTransitionTime: '2024-09-05T20:20:41Z'
message: the HPA controller was able to get the target's current scale
reason: SucceededGetScale
status: 'True'
type: AbleToScale
- lastTransitionTime: '2024-09-05T20:20:56Z'
message: >-
the HPA was unable to compute the replica count: failed to get memory
utilization: unable to get metrics for resource memory: unable to fetch
metrics from resource metrics API: the server could not find the
requested resource (get pods.metrics.k8s.io)
reason: FailedGetResourceMetric
status: 'False'
type: ScalingActive
type: ScalingLimited
- lastTransitionTime: '2024-09-05T20:20:41Z'
message: the HPA controller was able to get the target's current scale
reason: SucceededGetScale
status: 'True'
type: AbleToScale
- lastTransitionTime: '2024-09-05T20:20:56Z'
message: |
the HPA was unable to compute the replica count: failed to get memory
utilization: unable to get metrics for resource memory: unable to fetch
metrics from resource metrics API: the server could not find the
requested resource (get pods.metrics.k8s.io)
reason: FailedGetResourceMetric
status: 'False'
type: ScalingActive
type: ScalingLimited
currentMetrics:
- resource:
current:
Expand Down

0 comments on commit 0ae8020

Please sign in to comment.