feat: install Gateway API v1.5.1 CRDs (Cilium 1.20 requires referencegrants v1)

Cilium 1.20.1's operator refuses to create the Gateway controller when a
required CRD lacks v1:
  CRD "referencegrants.gateway.networking.k8s.io" does not have version "v1"

The cluster's Gateway API CRDs predate v1.5.x and only serve referencegrants
v1beta1. Vendor the v1.5.1 standard channel (referencegrants, tlsroutes,
backendtlspolicies, grpcroutes, listenersets etc. all at v1) and manage it
with a dedicated Flux Kustomization with prune=false so CRDs are never
auto-deleted.
This commit is contained in:
Sirius DevOps 2026-09-15 01:22:46 -04:00
commit 2fc8201719
No known key found for this signature in database
3 changed files with 17547 additions and 0 deletions

View file

@ -0,0 +1,16 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: gateway-api-crds
namespace: flux-system
spec:
interval: 1h0m0s
retryInterval: 5m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./infrastructure/networking/gateway-api
# CRDs must never be pruned automatically: dropping them would delete
# every Gateway/HTTPRoute object in the cluster.
prune: false