Skip to content

Commit ff3bc88

Browse files
committed
feat: enable fabric vpc to gw vpcinfo sync when gw enabled
Signed-off-by: Sergei Lukianov <[email protected]>
1 parent 6ae67b9 commit ff3bc88

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/fab/comp/fabric/fabric.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ func GetFabricConfig(f fabapi.Fabricator) (*meta.FabricConfig, error) {
250250
AllowExtraSwitchProfiles: false,
251251
MCLAGSessionSubnet: string(f.Spec.Config.Fabric.MCLAGSessionSubnet),
252252
GatewayASN: f.Spec.Config.Gateway.ASN,
253+
GatewayAPISync: f.Spec.Config.Gateway.Enable,
253254
}, nil
254255
}
255256

pkg/fab/comp/gateway/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func StatusAPI(ctx context.Context, kube kclient.Reader, cfg fabapi.Fabricator)
131131
return comp.MergeKubeStatuses(ctx, kube, cfg, //nolint:wrapcheck
132132
comp.GetCRDStatus("gateways.gateway.githedgehog.com", "v1alpha1"),
133133
comp.GetCRDStatus("peerings.gateway.githedgehog.com", "v1alpha1"),
134-
comp.GetCRDStatus("vpcinfoes.gateway.githedgehog.com", "v1alpha1"),
134+
comp.GetCRDStatus("vpcinfos.gateway.githedgehog.com", "v1alpha1"),
135135
)
136136
}
137137

0 commit comments

Comments
 (0)