Build docker image with ENV from Kube
duyleekun opened this issue · comments
There's a shared ENV between build and running phase. Currently, I have to duplicate the ENV from kube manifest into Dockerfile. Is there any way to do that properly yet?
Although this would have been an improvement in the UX but unfortunately not technically possible.
The ENV used during build must be loaded into gitkubed
pod because that is the one that builds the image. So you will need to copy it either way (in the gitkubed manifest or the remote manifest). It is better UX to have the ENV in the remote manifest rather than in a global gitkubed
manifest.
Does current Remote object support ref to ConfigMap/Secret because I can't find it in the documents. Having ConfigMap/Secret ref-able from Remote
would solve my use case.
That's a great suggestion. Can you please open an issue for the same?