Skip to content

Migrate to Kubernetes API 1.22

Hossein Pursultani requested to merge 398-kubebuilder-320 into master

This MR migrates GitLab Operator to Kubernetes API 1.22 using Kubebuilder version 3. It follows https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22 and implements all the required changes for the migration. As a result it is a fairly large MR.

What's included:

  • Updated project configuration file (PROJECT)
  • Updated Go dependencies for Kubernetes API 1.22
  • Cleaning up the unused/unnecessary dependencies
  • Updating CRD (apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1) and Webhook (admissionregistration.k8s.io/v1beta1 to admissionregistration.k8s.io/v1) versions
  • Picking !271 (closed) for updating Networking API for Ingress (extensions/v1beta1 and networking.k8s.io/v1beta1 to networking.k8s.io/v1)
  • Adding API and Kubernetes version capabilities to Helm facility
  • Minor changes to Makefile, Kustomization, and manifest to support the new changes

NOTE: The build pipeline of this MR requires gitlab-org/gitlab-build-images#92 (closed) to be merged first and the new build image pushed to the registry. Once done APPLY !283 (comment 734404952) BEFORE MERGE

Closes #398 (closed)

Closes #123 (closed)

Closes #162 (closed)

Closes #423 (closed) (!283 (06bb33bc))

Edited by Mitchell Nielsen

Merge request reports

Loading