Thursday, 2020-10-22

*** rh-jelabarre has quit IRC02:20
*** rh-jelabarre has joined #openstack-kuryr02:21
*** gcheresh has joined #openstack-kuryr04:52
*** rh-jelabarre has quit IRC06:05
*** rh-jelabarre has joined #openstack-kuryr06:06
*** ltomasbo has joined #openstack-kuryr06:24
*** noonedeadpunk has quit IRC06:31
*** noonedeadpunk has joined #openstack-kuryr06:32
*** noonedeadpunk has quit IRC06:34
*** noonedeadpunk has joined #openstack-kuryr06:39
*** ccamposr__ has joined #openstack-kuryr07:09
*** ccamposr has quit IRC07:12
*** DjeufackZane has joined #openstack-kuryr07:24
*** maysams-afk is now known as maysams08:01
*** DjeufackZane has quit IRC08:33
openstackgerritMerged openstack/kuryr-kubernetes master: CNI: Lookup offending interface on NetlinkError  https://review.opendev.org/75900508:55
openstackgerritItzik Brown proposed openstack/kuryr-tempest-plugin master: Add test_network_policy_add_remove_pod  https://review.opendev.org/75495609:43
*** maysams has quit IRC10:13
*** maysams has joined #openstack-kuryr10:15
openstackgerritMaysa de Macedo Souza proposed openstack/kuryr-kubernetes master: Allow to config network MTU  https://review.opendev.org/75914711:37
*** takamatsu has joined #openstack-kuryr11:54
openstackgerritKafilat Adeleke proposed openstack/kuryr-kubernetes master: corrects selflink on kubernetes resources  https://review.opendev.org/75925012:00
*** tabbie_fash has joined #openstack-kuryr13:08
*** takamatsu is now known as mauro|call14:04
*** mauro|call is now known as takamatsu14:04
*** tabbie_fash has quit IRC14:10
*** tabbie_fash has joined #openstack-kuryr14:17
*** tabbie_fash has quit IRC14:50
openstackgerritMichaƂ Dulko proposed openstack/kuryr-kubernetes master: Delete ports created for host networking pods  https://review.opendev.org/75910814:56
*** gcheresh has quit IRC15:00
*** tabbie_fash has joined #openstack-kuryr15:04
*** gregwork has joined #openstack-kuryr15:25
*** kafilat has joined #openstack-kuryr15:31
kafilatHello maysams15:32
*** tabbie_fash has quit IRC15:32
kafilatHello15:40
*** DjeufackZane has joined #openstack-kuryr15:48
maysamsHello kafilat, did my explanation helped a bit?15:49
kafilatNo. I don't get it15:49
maysamskalifat: what exactly?15:50
maysamskafilat: dulek, could you explain a bit more on the patch your idea with the new method for the selfLink handling?15:51
dulekmaysams, kafilat: Sure! Basically resources in K8s are pretty structured (see https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/).15:52
*** tabbie_fash has joined #openstack-kuryr15:53
dulekkafilat: So with information from apiVersion and kind fields along with name and namespace we should be able to build URL to that resource.15:53
dulekSee pod's definition: https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#pod-v1-core15:53
dulekOr even better: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#resources15:54
dulekSo the idea is to write a method called e.g. getSelfLink() in k8s_client class.15:54
dulekAnd then wherever we do obj['metadata']['selfLink'] - do k8s.getSelfLink(obj).15:55
dulekAnd that getSelfLink(obj) will effectively just format URL as I wrote on review: f'/api/{obj['apiVersion']}/namespaces/{obj['metadata']['namespace']}/{kind}/{obj['metadata']['name']}15:56
dulek(those are f-strings https://www.python.org/dev/peps/pep-0498/)15:56
dulekNow the problem is "kind" - as it's a bit different than kind field on the resources.15:57
dulekSo to mitigate that we need to create a constant dictionary with mappings - e.g. {'KuryrPort': 'kuryrports', 'Pod': 'pods'} and so on.15:57
dulekThen in the getSelfLink(obj) code will just do `kind = self.kind_mappings.get(obj['kind'])` to get what kind should go into the URL.15:58
dulekThat's it.15:58
dulekkafilat: Does this help?15:58
kafilatThank you. I'll go through it again.15:59
kafilatWhat about kuryr specific resources?16:00
dulekkafilat: They'll have correct prefix in apiVersion already.16:01
dulekOuch. It's either '/api' or '/apis', it'd need to figure out when to use which. :/16:02
kafilatOkay. Thank you.16:02
dulekkafilat: It will be something like this: http://paste.openstack.org/show/799289/16:08
dulekApparently it's '/api' only for v1 and it's '/apis' for anything else.16:08
kafilatOh, that really helps. Thanks.16:10
*** tabbie_fash has quit IRC16:13
*** gcheresh has joined #openstack-kuryr16:41
*** DjeufackZane has quit IRC16:51
*** gcheresh has quit IRC17:05
*** ccamposr has joined #openstack-kuryr17:06
*** ccamposr__ has quit IRC17:09
*** ltomasbo has quit IRC17:13
*** KurtB has quit IRC18:35
*** kafilat has quit IRC19:49
*** aghasaad04 has joined #openstack-kuryr20:30
*** gcheresh has joined #openstack-kuryr20:56
*** aghasaad04 has quit IRC21:37
*** gcheresh has quit IRC21:46
*** DjeufackZane has joined #openstack-kuryr22:28
*** maysams has left #openstack-kuryr22:34
*** maysams has joined #openstack-kuryr22:34
maysamsHello DjeufackZane, I saw you mentioned interest on the Kuryr project a while ago22:56
maysamsDjeufackZane: I'm glad about your interest. If you want to get started contributing feel free to pick a task from this list not yet assigned to anyone https://bugs.launchpad.net/kuryr-kubernetes/+bugs?field.tag=low-hanging-fruit22:58
*** DjeufackZane has quit IRC22:58
*** rh-jelabarre has quit IRC23:15

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!