-
Bug
-
Resolution: Unresolved
-
Normal
-
4.16, 4.17, 4.18.0, 4.19.0, 4.20.0
-
None
Description of problem:
When a Horizontal Pod Autoscaler (HPA) is created with a ContainerResource metric, the data for the ContainerResource metric isn't visible in the Details page of the HPA.
Version-Release number of selected component (if applicable):
Tested in 4.18.13 but will affect later versions as well.
How reproducible:
Always
Steps to Reproduce:
1. Create a new project with the command oc new-project test. 2. Create a test HPA resource with a ContainerResource metric. Here's an example command to do this. oc apply -f - <<EOF apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: test-hpa namespace: test spec: maxReplicas: 1 metrics: - type: ContainerResource containerResource: name: cpu target: type: Utilization averageUtilization: 10 container: test-container scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: test-deploy EOF 3. Login to the web console as a cluster-admin and go to Administrator > Workloads > HorizontalPodAutoscalers > <HPA Name> and check under the "Metrics" section.
Actual results:
In the Metrics table, the ContainerResource metric is shown as "ContainerResource (unrecognized type)" in the Type field with no information about the Current or Target usage.
Expected results:
There is relevant information about the ContainerResource metric in the Type, Current, and Target fields of the Metrics table.
Additional info:
- blocks
-
OCPBUGS-58183 ContainerResource metric data for HPAs isn't visible in the Details page
-
- Closed
-
- is cloned by
-
OCPBUGS-58183 ContainerResource metric data for HPAs isn't visible in the Details page
-
- Closed
-
- links to