homek8s/clusters/homek8s/gateway-api-crds.yaml
Sirius DevOps 2fc8201719
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.
2026-09-15 01:22:46 -04:00

16 lines
No EOL
426 B
YAML

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