fix(traefik): add instance labels to GatewayClasses #137
Reference in New Issue
Block a user
Delete Branch "benvin/fix-gatewayclass-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
GatewayClasses were
Unknowneven after controllerName was fixed. ThekubernetesGatewaylabelSelectorapplies to all watched resources, including GatewayClasses themselves. Since neither GatewayClass had atraefik.io/instancelabel, both Traefik instances filtered them out and never accepted them.Fix
gatewayclass-internal.yaml: addtraefik.io/instance: internalgatewayclass-external.yaml: addtraefik.io/instance: externalTest plan
kubectl get gatewayclassshows both asAccepted: True