Sunday, 2018-11-04

*** dmsimard has quit IRC01:30
*** dmsimard has joined #zuul01:54
*** swest has quit IRC02:29
*** swest has joined #zuul02:44
*** bhavikdbavishi has joined #zuul05:40
*** bhavikdbavishi has quit IRC06:33
*** pcaruana has joined #zuul06:45
*** lennyb has joined #zuul06:57
*** goern has quit IRC07:34
*** bhavikdbavishi has joined #zuul09:39
*** bhavikdbavishi has quit IRC10:49
*** chandankumar has joined #zuul17:04
*** chandankumar has quit IRC17:08
*** dkehn has quit IRC17:13
*** ssbarnea_ has joined #zuul17:21
*** ssbarnea_ has quit IRC17:21
*** goern has joined #zuul18:17
goernhey all, I am experimenting with secrets and running jobs in pods. It looks like I cant understand why https://github.com/thoth-station/user-api/blob/fabf3d408e935c04b45f200e7938ecd3df1d26da/devops_redeploy.yaml#L3 is telling me that `service_account` is an undefined var, I think I defined it at https://github.com/thoth-station/user-api/blob/fabf3d408e935c04b45f200e7938ecd3df1d26da/.zuul.yaml#L44 It feels like the secret is not available to the19:23
goernplaybook running in the pod?!19:23
*** rlandy has joined #zuul20:30
*** dkehn has joined #zuul20:49
*** pcaruana has quit IRC21:20
ianwgoern: hrm, i'm not fully across what you've got going on, but it looks to me you're trying to use the secret in the "check" queue?22:55
ianwbasically secrets only work in post-review queues; see https://zuul-ci.org/docs/zuul/user/config.html?highlight=secret#secret22:55
ianwthis is to prevent anyone who can propose a change essentially doing an "echo secret" in their proposed change, which is obviously bad :)22:56
mordredianw, goern yes - however, there is another thing amiss here ...23:28
mordredwhich is that the job in question, (thoth-redeploy) doesn't actually request that secret. so the secret is being defined, but the job isn't using it23:28
mordredgoern: in the thoth-redeploy job, add "secrets: - service_account"23:30
*** rlandy has quit IRC23:32
goernianw, ack, will move the job, its in check pipeline just for the sake of testing, post is correct...23:40
goernmordred, the job requesting the secret is new to me, I understood it as "a secret will be a var and can be accessed by jobs"23:41
goernmordred, this is it... https://zuul-ci.org/docs/zuul/user/config.html?highlight=secret#attr-job.secrets23:46
goernianw, what is the best way to develop such jobs? having it in a post review pipeline and let it merge doesnt seem feasible?!23:51

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