Skip to content

Feature/get rid of node watcher#428

Merged
sknat merged 3 commits into
masterfrom
feature/get-rid-of-node-watcher
Jan 3, 2023
Merged

Feature/get rid of node watcher#428
sknat merged 3 commits into
masterfrom
feature/get-rid-of-node-watcher

Conversation

@hedibouattour

@hedibouattour hedibouattour commented Sep 21, 2022

Copy link
Copy Markdown
Collaborator

@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch from dad125d to 90c970b Compare September 21, 2022 16:21
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch from 90c970b to a47178e Compare October 3, 2022 15:35

@sknat sknat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That looks neat, thanks !
Just a few things, inline 😄

Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/routing/routing_server.go Outdated
Comment thread calico-vpp-agent/watchers/nodes_watcher.go Outdated
Comment thread calico-vpp-agent/watchers/nodes_watcher.go Outdated
Comment thread calico-vpp-agent/watchers/nodes_watcher.go Outdated
Comment thread calico-vpp-agent/watchers/nodes_watcher.go Outdated
Comment thread calico-vpp-agent/common/pubsub.go Outdated
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch from a47178e to 05b207f Compare October 12, 2022 15:42
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch from 05b207f to fc5cec6 Compare October 12, 2022 15:50
Comment thread calico-vpp-agent/common/common.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/common/common.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch 4 times, most recently from e6e0cb9 to a1e1a1b Compare October 18, 2022 08:50

@sknat sknat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Threading model looks neat !
Just a few nitpicks 😄

Comment thread calico-vpp-agent/cni/cni_pod_test.go Outdated
Comment thread calico-vpp-agent/connectivity/ipsec.go Outdated
Comment thread vpplink/wireguard.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go
Comment thread calico-vpp-agent/common/common.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch from a1e1a1b to 3f06e62 Compare October 19, 2022 09:06
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch 2 times, most recently from 4b49394 to ac2f070 Compare December 1, 2022 16:43
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch from ac2f070 to f78f869 Compare December 9, 2022 18:43

@sknat sknat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a few nitpicks

Comment thread calico-vpp-agent/policy/policy_server.go
Comment on lines +1136 to +1137
IPv4Address: ip4net,
IPv6Address: ip6net,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't those two be net.IP instead of *net.IPNet ?

@hedibouattour hedibouattour Dec 13, 2022

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@sknat this is used in getProviderType in connectivity server to know if it isCrossSubnet or not, that's why it is an IPNet

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Right, but from

ip, ip4net, err := net.ParseCIDR(msg.Ipv4Addr + "/32")

we don't have a net.IPNet provided to us no ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Comment thread calico-vpp-agent/policy/policy_server.go Outdated
Comment thread calico-vpp-agent/policy/policy_server.go Outdated
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch 2 times, most recently from b7e00fc to b635e08 Compare December 13, 2022 16:00
@hedibouattour
hedibouattour force-pushed the feature/get-rid-of-node-watcher branch from b635e08 to a05ca3d Compare December 14, 2022 13:03
@sknat
sknat merged commit bd97f0f into master Jan 3, 2023
@sknat
sknat deleted the feature/get-rid-of-node-watcher branch January 3, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants