gateway-api
gateway-api copied to clipboard
GatewayAPI CRDs failed to upgrade from 0.6 to 1.0.
What happened: When I tried to upgrade from CRD from 0.6.0 all the way to 1.0.0, I encountered the following error
The CustomResourceDefinition "gatewayclasses.gateway.networking.k8s.io" is invalid: status.storedVersions[0]: Invalid value: "v1alpha2": must appear in spec.versions
What you expected to happen: kubectl apply should be executed correctly with the following message:
customresourcedefinition.apiextensions.k8s.io/gatewayclasses.gateway.networking.k8s.io configured
How to reproduce it (as minimally and precisely as possible): Simply first apply 0.8.0 and then 1.0.0, as following:
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/release-0.8/config/crd/standard/gateway.networking.k8s.io_gatewayclasses.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/release-1.0/config/crd/standard/gateway.networking.k8s.io_gatewayclasses.yaml
Anything else we need to know?: My K8s Cluster is v1.27.6-gke.2500