Skip to content

ResourceQuantity is struct now and breaks API #1672

@plachor

Description

@plachor

in latest 18.0.4 version ResourceQuantity become a struct, now when using V2HorizontalPodAutoscaler Tolerance is not optional any more, and calling CreateNamespacedHorizontalPodAutoscalerAsync with not set scale down Tolerance won't use cluster default but will fail with :

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "HorizontalPodAutoscaler in version \"v2\" cannot be handled as a HorizontalPodAutoscaler: strict decoding error: unknown field \"spec.behavior.scaleDown.tolerance\", unknown field \"spec.behavior.scaleUp.tolerance\"",
  "reason": "BadRequest",
  "code": 400
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions