You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the VPA extension, it's impossible to use VerticalPodAutoscaler resources with "controlledResources" set.
A deserialization error occurs.
Fabric8 Kubernetes Client version
5.10.1@latest
Steps to reproduce
modify yaml resource in io.fabric8.verticalpodautoscaler.test.crud.V1VerticalPodAutoscalerCrudTest.shouldLoadVerticalPodAutoscaler
run the test
it fails!
Expected behavior
Proper deserialization is expected.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.22.3@latest
Environment
Linux
Fabric8 Kubernetes Client Logs
io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
at io.fabric8.verticalpodautoscaler.test.crud.V1VerticalPodAutoscalerCrudTest.shouldLoadVerticalPodAutoscaler(V1VerticalPodAutoscalerCrudTest.java:82)
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException:
Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('cpu')
at [Source: (String)"{"apiVersion":"autoscaling.k8s.io/v1","kind":"VerticalPodAutoscaler","metadata":{"name":"my-app-vpa"},"spec":{"targetRef":{"apiVersion":"apps/v1","kind":"Deployment","name":"my-app"},"updatePolicy":{"updateMode":"Auto"},"resourcePolicy":{"containerPolicies":[{"containerName":"container","controlledResources":["cpu","memory"],"controlledValues":"RequestsOnly"}]}}}"; line: 1, column: 312] (through reference chain: io.fabric8.verticalpodautoscaler.api.model.v1.VerticalPodAutoscaler["spec"]->io.fabric8.verticalpodautoscaler.api.model.v1.VerticalPodAutoscalerSpec["resourcePolicy"]->io.fabric8.verticalpodautoscaler.api.model.v1.PodResourcePolicy["containerPolicies"]->java.util.ArrayList[0]->io.fabric8.verticalpodautoscaler.api.model.v1.ContainerResourcePolicy["controlledResources"]->java.util.ArrayList[0])
at io.fabric8.verticalpodautoscaler.test.crud.V1VerticalPodAutoscalerCrudTest.shouldLoadVerticalPodAutoscaler(V1VerticalPodAutoscalerCrudTest.java:82)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
In the VPA extension, it's impossible to use VerticalPodAutoscaler resources with "controlledResources" set.
A deserialization error occurs.
Fabric8 Kubernetes Client version
5.10.1@latest
Steps to reproduce
Expected behavior
Proper deserialization is expected.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.22.3@latest
Environment
Linux
Fabric8 Kubernetes Client Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: