Skip to content

Commit

Permalink
Gather OVN IC resources
Browse files Browse the repository at this point in the history
Add following resources to `subctl gather` for OVN IC use case
 * GatewayRoutes
 * NonGatewayRoutes

Refer submariner-io/enhancements#186

Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
  • Loading branch information
vthapar authored and sridhargaddam committed Sep 8, 2023
1 parent 1c1f497 commit 725709b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/gather/cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ func gatherOVNResources(info *Info, networkPlugin string) {
for name, command := range ovnCmds {
logCmdOutput(info, &ovnMasterpods.Items[0], command, name, false)
}

gatherGatewayRoutes(info)
gatherNonGatewayRoutes(info)
}

func gatherCableDriverResources(info *Info, cableDriver string) {
Expand Down
8 changes: 8 additions & 0 deletions internal/gather/connectivity.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@ func gatherGlobalEgressIPs(info *Info) {
func gatherGlobalIngressIPs(info *Info) {
ResourcesToYAMLFile(info, submarinerv1.SchemeGroupVersion.WithResource("globalingressips"), corev1.NamespaceAll, v1.ListOptions{})
}

func gatherGatewayRoutes(info *Info) {
ResourcesToYAMLFile(info, submarinerv1.SchemeGroupVersion.WithResource("gatewayroutes"), corev1.NamespaceAll, v1.ListOptions{})
}

func gatherNonGatewayRoutes(info *Info) {
ResourcesToYAMLFile(info, submarinerv1.SchemeGroupVersion.WithResource("nongatewayroutes"), corev1.NamespaceAll, v1.ListOptions{})
}

0 comments on commit 725709b

Please sign in to comment.