)]}'
{"kuryr_kubernetes/cni/binding/nested.py":[{"author":{"_account_id":13692,"name":"Roman Dobosz","email":"gryf73@gmail.com","username":"gryf"},"change_message_id":"293514ae8e843d8c2cb76edfaa036a293bb45e74","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if config.CONF.binding.link_iface in h_ipdb.interfaces:"},{"line_number":49,"context_line":"            return config.CONF.binding.link_iface"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        # Then let\u0027s try choosing the one where kubelet listens to"},{"line_number":52,"context_line":"        conns \u003d [x for x in psutil.net_connections()"},{"line_number":53,"context_line":"                 if x.status \u003d\u003d \u0027LISTEN\u0027"},{"line_number":54,"context_line":"                 and x.laddr.port \u003d\u003d KUBELET_PORT]"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf51134e_9e9e56b6","line":51,"range":{"start_line":51,"start_character":10,"end_line":51,"end_character":66},"updated":"2020-07-02 08:41:46.000000000","message":"Can we relay on fact, that kubelet will listen on certain interfaces, rather than on all interfaces?","commit_id":"91298f3bb282e7405bc282d7f13c9c38b84e06e1"},{"author":{"_account_id":13692,"name":"Roman Dobosz","email":"gryf73@gmail.com","username":"gryf"},"change_message_id":"834c3f2c7c3c62e6c4746d6a3225476bb1e8a84c","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if config.CONF.binding.link_iface in h_ipdb.interfaces:"},{"line_number":49,"context_line":"            return config.CONF.binding.link_iface"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        # Then let\u0027s try choosing the one where kubelet listens to"},{"line_number":52,"context_line":"        conns \u003d [x for x in psutil.net_connections()"},{"line_number":53,"context_line":"                 if x.status \u003d\u003d \u0027LISTEN\u0027"},{"line_number":54,"context_line":"                 and x.laddr.port \u003d\u003d KUBELET_PORT]"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf51134e_c64be0ad","line":51,"range":{"start_line":51,"start_character":10,"end_line":51,"end_character":66},"in_reply_to":"bf51134e_00b77f88","updated":"2020-07-02 15:36:53.000000000","message":"Fair enough.","commit_id":"91298f3bb282e7405bc282d7f13c9c38b84e06e1"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"6b23252c005226b5baa25ea24573e96a0c1999be","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if config.CONF.binding.link_iface in h_ipdb.interfaces:"},{"line_number":49,"context_line":"            return config.CONF.binding.link_iface"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        # Then let\u0027s try choosing the one where kubelet listens to"},{"line_number":52,"context_line":"        conns \u003d [x for x in psutil.net_connections()"},{"line_number":53,"context_line":"                 if x.status \u003d\u003d \u0027LISTEN\u0027"},{"line_number":54,"context_line":"                 and x.laddr.port \u003d\u003d KUBELET_PORT]"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf51134e_a0bb33c2","line":51,"range":{"start_line":51,"start_character":10,"end_line":51,"end_character":66},"in_reply_to":"bf51134e_9e9e56b6","updated":"2020-07-02 14:40:32.000000000","message":"Well, that\u0027ll work for OpenShift for sure [1], which is good with me. For other use cases one can just use configuration option. I don\u0027t really see a different way here, but I\u0027m totally happy to support a better idea.\n\n[1] https://github.com/openshift/machine-config-operator/blob/master/templates/master/01-master-kubelet/openstack/units/kubelet.service.yaml#L28","commit_id":"91298f3bb282e7405bc282d7f13c9c38b84e06e1"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"c5e21c2564cad934d71c6f15f691d19eea8add8d","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if config.CONF.binding.link_iface in h_ipdb.interfaces:"},{"line_number":49,"context_line":"            return config.CONF.binding.link_iface"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        # Then let\u0027s try choosing the one where kubelet listens to"},{"line_number":52,"context_line":"        conns \u003d [x for x in psutil.net_connections()"},{"line_number":53,"context_line":"                 if x.status \u003d\u003d \u0027LISTEN\u0027"},{"line_number":54,"context_line":"                 and x.laddr.port \u003d\u003d KUBELET_PORT]"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf51134e_00b77f88","line":51,"range":{"start_line":51,"start_character":10,"end_line":51,"end_character":66},"in_reply_to":"bf51134e_a0bb33c2","updated":"2020-07-02 14:50:03.000000000","message":"BTW if kubelet listens on default 0.0.0.0, this code will just return first interface of the VM, which still seems to be an improvement.","commit_id":"91298f3bb282e7405bc282d7f13c9c38b84e06e1"},{"author":{"_account_id":27032,"name":"Maysa de Macedo Souza","email":"maysa.macedo95@gmail.com","username":"maysa"},"change_message_id":"f7e1e50bd6bd2328bb9b699618996e9a0a1737da","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        # Then let\u0027s try choosing the one where kubelet listens to"},{"line_number":52,"context_line":"        conns \u003d [x for x in psutil.net_connections()"},{"line_number":53,"context_line":"                 if x.status \u003d\u003d \u0027LISTEN\u0027"},{"line_number":54,"context_line":"                 and x.laddr.port \u003d\u003d KUBELET_PORT]"},{"line_number":55,"context_line":"        if len(conns) \u003d\u003d 1:"},{"line_number":56,"context_line":"            lookup_addr \u003d conns[0].laddr.ip"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf51134e_7bfc343e","line":53,"range":{"start_line":53,"start_character":32,"end_line":53,"end_character":40},"updated":"2020-07-02 08:25:12.000000000","message":"this could be substituted by psutil.CONN_LISTEN","commit_id":"91298f3bb282e7405bc282d7f13c9c38b84e06e1"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"6b23252c005226b5baa25ea24573e96a0c1999be","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        # Then let\u0027s try choosing the one where kubelet listens to"},{"line_number":52,"context_line":"        conns \u003d [x for x in psutil.net_connections()"},{"line_number":53,"context_line":"                 if x.status \u003d\u003d \u0027LISTEN\u0027"},{"line_number":54,"context_line":"                 and x.laddr.port \u003d\u003d KUBELET_PORT]"},{"line_number":55,"context_line":"        if len(conns) \u003d\u003d 1:"},{"line_number":56,"context_line":"            lookup_addr \u003d conns[0].laddr.ip"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf51134e_c02627bb","line":53,"range":{"start_line":53,"start_character":32,"end_line":53,"end_character":40},"in_reply_to":"bf51134e_7bfc343e","updated":"2020-07-02 14:40:32.000000000","message":"Nice!","commit_id":"91298f3bb282e7405bc282d7f13c9c38b84e06e1"}]}
