Change default for deploymentApiVersion to `apps/v1` (breaking change)
In Auto DevOps, switch default of
deploymentApiVersion: extensions/v1beta1 to new default
deploymentApiVersion: apps/v1. Switch planned for GitLab %13.0
If user is using Kubernetes 1.9 and below, they will need to upgrade their Kubernetes cluster in order to get
apps/v1. Note in https://docs.gitlab.com/ee/topics/autodevops/#requirements, we require Kubernetes 1.12+
If the user's cluster is Kubernetes 1.9 or below, this breaking change will cause them to an error message like:
unable to find resource of type 'deployment'
Impact on GitLab.com
As there should be minimal number of users using Kubernetes 1.9 or below, it should be OK to deploy to GitLab.com whenever this change is ready
In gitlab-org/gitlab#32720 (closed), we added support for changing
deploymentApiVersion. The ability to use
deploymentApiVersion: apps/v1 has been available since Kubernetes 1.9. Kubernetes 1.16 no longer will be serving extensions/v1beta1 deployments.