Skip to content

Commit b9bcec7

Browse files
mathetakearkodgzhaohuabing
authored
fix: allows offline k8s controller to use non default CRDs (#6020)
* fix: allows offline k8s controller to use non default CRDs Signed-off-by: Takeshi Yoneda <[email protected]> * workaround Signed-off-by: Takeshi Yoneda <[email protected]> --------- Signed-off-by: Takeshi Yoneda <[email protected]> Co-authored-by: Arko Dasgupta <[email protected]> Co-authored-by: Huabing (Robin) Zhao <[email protected]>
1 parent 29f79c7 commit b9bcec7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

internal/provider/kubernetes/controller_offline.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@ func NewOfflineGatewayAPIController(
7575
envoyGateway: cfg.EnvoyGateway,
7676
mergeGateways: sets.New[string](),
7777
extServerPolicies: extServerPoliciesGVKs,
78+
// We assume all CRDs are available in offline mode.
79+
bTLSPolicyCRDExists: true,
80+
btpCRDExists: true,
81+
ctpCRDExists: true,
82+
eepCRDExists: true,
83+
epCRDExists: true,
84+
eppCRDExists: true,
85+
hrfCRDExists: true,
86+
grpcRouteCRDExists: true,
87+
serviceImportCRDExists: true,
88+
spCRDExists: true,
89+
tcpRouteCRDExists: true,
90+
tlsRouteCRDExists: true,
91+
udpRouteCRDExists: true,
92+
// TODO: enable this for consistency after the foundamental fix is available https://github.com/envoyproxy/gateway/pull/6021.
93+
// In practice, this won't affect any user-facing reconciliation logic for now but it might in the future.
94+
backendCRDExists: false,
7895
}
7996

8097
r.log.Info("created offline gatewayapi controller")

0 commit comments

Comments
 (0)