/srv/irclogs.ubuntu.com/2020/01/24/#juju.txt

lucidoneIs it possible to define multiple service accounts in the k8sspec? It looks like it's not, as the serviceAccount key takes no name and requires a list of rules01:37
lucidoneI'm also needing to bind multiple roles to the service account. Natively this is a ClusterRole and a Role. In k8sspec spec language this specific use case could be done if there were global:true rules and global:false rules02:06
lucidoneOoo, just saw kubernetesResources.serviceAccounts !02:12
lucidoneThat looks like my ticket to freedom02:12
lucidoneActually, that solves the first issue, but not the second. as each service account still takes a global key and a list of rules - does it allow specifying the same serviceAccount name twice?02:14
kelvinliulucidone: so SA is always namespaced I think, but Role/ClusterRole could be different03:03
kelvinliuso u can't have two SA having same name in same namespace.03:04
tlmlucidone: Are you able to provide any deatails on the integration you are doing for future reference03:04
kelvinliulucidone: and u can see `kubernetesResources.serviceAccounts` is actually an array, so u can create multi SA but they should have different names or K8s will give u an already exist error.03:06
lucidoneYeap, the 'kubernetesResources.serviceAccounts' solves the first issue. I'm looking at charmifying the nginx-ingress helm chart. It has an nginx-ingress service account, and it binds a ClusterRole to it aswell as a Role - which I believe is currently unsupported as you define a serviceAccount with a global flag and a list of rules03:10
tlmah yeah I see the problem. The global rule shouldn't be defined on the SA but the rules03:12
lucidoneOne possible fix would be to remove the global flag, and add a globalRules list instead .. so the user can specify either03:12
lucidoneBut in general you can bind N roles to a given service account03:12
lucidoneSo separating rules from the SA is a more general solution03:13
tlmyeah. What about if each rule could be set global or not ? That way juju would make one clusterole and role and split them based on the flag ?03:13
tlmbut sounds like rules should not be tied so hard to sa's03:13
lucidoneglobal flag per rule would work for this use case. But yea, I think splitting is the better solution. Would allow you to define rule lists, and then bind as many as you wish to a set of service accounts03:15
lucidoneIt looks like multiple services are also not supported? .. nginx-ingress needs to create 'nginx-ingress-controller' and 'nginx-ingress-default-backend' services03:35
lucidoneThat might be more challenging with the juju model .. Perhaps the default backend would be another charm that is then related03:41
kelvinliulucidone: yeah, we used to support the main SA linking to multi role/cluster but later we changed to current spec because we wanted to make it simpler, but we can have a discussion on Tue.03:50
lucidoneAh right, yea sounds like a good one to discuss :)03:52
kelvinliulucidone: so yeah, one charm one pod03:52
kelvinliubut u can have many containers in the pod03:53
kelvinliuso in this case, they would be two charms03:54
lucidoneYea, that one makes a lot of sense with the juju model03:54
stickupkidmanadart, you looking into the focal stuff from the PR?09:14
manadartstickupkid: Which stuff in particular?09:14
stickupkidmanadart, ignore me, I just saw your comment09:14
stickupkidhaha09:14
nammn_demanadart:  morning, some time for a quick HO?09:27
manadartnammn_de: Sure.09:28
nammn_demanadart: heading daily09:28
nammn_demanadart: ahhh now I understand what you meant. Wrapping the type in spaces_test so we don't touch the stub_network as we don't plan to change it anymore. Thanks!09:33
nammn_demanadart: as you approve it, I will rebase those commits down09:43
manadartnammn_de: I will give it a last look now.09:44
nammn_demanadart: regarding rename spaces provider support. Is adding a method to networking interface called seomthing along "supportspacesrenames"  enough? Then implementing it on the supporting provider. In this case only ec2.11:36
manadartnammn_de: Call it SupportsProviderSpaces with good comment differentiation between that and SupportsSpaces.11:39
nammn_demanadart: great, will do11:39
manadartPre-real-work refactoring patch for service file writer: https://github.com/juju/juju/pull/1114912:00
stickupkidmanadart, looking12:01
=== narindergupta is now known as narinderguptamac
hmlwallyworld: ping15:30
nammn_demanadart: shouldnt the method `DeltaOps` takes a collection param? As the collection we need to update in rename-space should be controllers?17:45
stickupkidnammn_de, he's gone :)17:48
nammn_destickupkid: yeah, not time pressure anyway. Gonna ask him next week=D17:49
madsagejuju make sandwich18:17
madsagegreetings :)18:18
addyessfrankban: any chance you can address https://github.com/go-macaroon-bakery/py-macaroon-bakery/issues/8020:53
addyessfrankban: it's causing issues in https://zuul.opendev.org/t/openstack/build/e6195988f5374039a7645f1d1363c18a20:54

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!