Re: ServiceAccount token for a build Pod (Dynamic resource creation )

2018-11-30 Thread Ben Parees
On Fri, Nov 30, 2018 at 10:22 AM Dan Pungă wrote: > I thought a bit and I guess I can create a fixed name secret that holds > the access token for the SA and use it as a usual build-time/mounted > secret. Now my process works. > But to go back to my initial confusion, what is the use case of >

Re: ServiceAccount token for a build Pod (Dynamic resource creation )

2018-11-30 Thread Dan Pungă
I thought a bit and I guess I can create a fixed name secret that holds the access token for the SA and use it as a usual build-time/mounted secret. Now my process works. But to go back to my initial confusion, what is the use case of buildconfig.spec.serviceAccount? The API documentation

Re: ServiceAccount token for a build Pod (Dynamic resource creation )

2018-11-29 Thread Ben Parees
On Thu, Nov 29, 2018 at 6:53 PM Dan Pungă wrote: > Thanks for the reply! > > My response is inline as well. > On 30.11.2018 00:51, Ben Parees wrote: > > > > On Thu, Nov 29, 2018 at 5:34 PM Dan Pungă wrote: > >> Hello all, >> >> The short version/question would be: How can I use a custom >>

Re: ServiceAccount token for a build Pod (Dynamic resource creation )

2018-11-29 Thread Dan Pungă
Thanks for the reply! My response is inline as well. On 30.11.2018 00:51, Ben Parees wrote: On Thu, Nov 29, 2018 at 5:34 PM Dan Pungă > wrote: Hello all, The short version/question would be: How can I use a custom ServiceAccount with a BuildConfig?

Re: ServiceAccount token for a build Pod (Dynamic resource creation )

2018-11-29 Thread Ben Parees
On Thu, Nov 29, 2018 at 5:34 PM Dan Pungă wrote: > Hello all, > > The short version/question would be: How can I use a custom > ServiceAccount with a BuildConfig? > you can choose the SA used by the build via: buildconfig.spec.serviceAccount But I don't think this will help you. > > It

ServiceAccount token for a build Pod (Dynamic resource creation )

2018-11-29 Thread Dan Pungă
Hello all, The short version/question would be: How can I use a custom ServiceAccount with a BuildConfig? It appears the build Pod doesn't have the serviceAcoount's token mounted at the location: cat: /var/run/secrets/kubernetes.io/serviceaccount/token: No such file or directory Thank