Skip to content

Support for autoscaler/v2

A customer is reporting (ZD internal: https://gitlab.zendesk.com/agent/tickets/414970), that the auto-deploy-image project does not support autoscaler/v2 and only supports autoscaler/v2beta2 at this time. They would like to request support for autoscaler/v2 as GKE 1.26 does not support autoscaler/v2beta2 any longer.

The HPA v2beta2 API was removed in Kubernetes 1.26, the v2 API was introduced in Kubernetes 1.23.

Link to HPA version: https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/-/blob/master/assets/auto-deploy-app/templates/hpa.yaml#L3

Tests need updating as well: https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image/-/blob/master/assets/auto-deploy-app/test/templates/hpa_test.go

Hypercloud support

The last Kubernetes version supporting the v2beta2 API is v1.25

Proposal

In the the auto-deploy-image project:

  • replace autoscaling/v2beta2 with autoscaling/v2
    • Just in case, make sure that v2beta2 and v2 are backward compatible.
  • update tests

List of occurrences autoscaling/v2beta2

Edited by Shinya Maeda