-
Bug
-
Resolution: Done-Errata
-
Undefined
-
4.19, 4.20
-
None
This is a clone of issue OCPBUGS-58208. The following is the description of the original issue:
—
Description of problem:
After adding an HPA with ContainerResource type to a deployment, clicking 'Edit HorizontalPodAutoscaler', it will show runtime error in form edit mode on the page.
Version-Release number of selected component (if applicable):
4.20.0-0.nightly-2025-06-27-094229
How reproducible:
Always
Steps to Reproduce:
1.Create a HPA with ContainerResource type for a deployment.
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
2.Go to the deployment page, click 'Edit HorizontalPodAutoscaler' item from action list, switch to form edit if it's yaml edit by default.
3.
Actual results:
2. A runtime error page shows up:
Something wrong happened
e.resource is undefined
Expected results:
2. Should not show runtime error.
Additional info:
- clones
-
OCPBUGS-58208 Runtime error page shows up when editing HPA with ContainerResource type from deployment action list
-
- Closed
-
- is blocked by
-
OCPBUGS-58208 Runtime error page shows up when editing HPA with ContainerResource type from deployment action list
-
- Closed
-
- links to
-
RHBA-2025:10771
OpenShift Container Platform 4.19.4 bug fix update