Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gather OVN IC resources #888

Merged
merged 2 commits into from
Sep 8, 2023
Merged

Conversation

vthapar
Copy link
Contributor

@vthapar vthapar commented Aug 30, 2023

Add following resources to subctl gather for OVN IC use case

  • GatewayRoutes
  • NonGatewayRoutes

Refer submariner-io/enhancements#186

Add following resources to `subctl gather` for OVN IC use case
 * GatewayRoutes
 * NonGatewayRoutes

Refer submariner-io/enhancements#186

Signed-off-by: Vishal Thapar <[email protected]>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr888/vthapar/gather-ovn-ic
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@@ -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{})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these resources are only created in the submariner-operator namespace. So, using NamespaceAll may not be required, but there is no harm as such. @aswinsuryan what do you suggest?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with ALL coz it will help us catch any issues cause dby bugs or users manually creating them in other namespaces. In normal scenarios, it is practically same so data collected will not vary but good to have ALL to catch in case they show up in other namespaces.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This resource is similar to the endpoints and clusters that the gateway creates. So I think the gather logic can be similar.

@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Sep 8, 2023
@sridhargaddam sridhargaddam merged commit 725709b into submariner-io:devel Sep 8, 2023
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr888/vthapar/gather-ovn-ic]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test When a PR is ready for full E2E testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants