-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
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]>
🤖 Created branch: z_pr888/vthapar/gather-ovn-ic |
@@ -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{}) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
🤖 Closed branches: [z_pr888/vthapar/gather-ovn-ic] |
Add following resources to
subctl gather
for OVN IC use caseRefer submariner-io/enhancements#186