Hi Warren, PodPreset doesn't support init containers yet, so behavior you are observing is expected. There is a proposal to add support for init containers in Beta version of PodPreset, but thats not coming out soon.
As a workaround, I would recommend exploring Initializers <https://kubernetes.io/docs/admin/extensible-admission-controllers/> to achieve that. On Thu, Nov 9, 2017 at 8:26 AM Rodrigo Campos <rodrig...@gmail.com> wrote: > I don't find any reason mentioned in the proposal: > https://github.com/kubernetes/community/blob/master/contributors/design-proposals/service-catalog/pod-preset.md > > It seems like an useful question to ask on service catalog sig? Probably > with a concrete use case :) > > > On Thursday, November 9, 2017, Warren Strange <warren.stra...@gmail.com> > wrote: > >> >> Here is a small gist that demonstrates the issue: >> >> https://gist.github.com/wstrange/b9c1adc2139dab8f9b554a9d21b30bdd >> >> running >> kubectl logs test -c init >> >> does not show the env var being set. But I can see it in the test >> container. >> >> Unless I am missing something, this looks like a bug? >> >> >> On Wednesday, November 8, 2017 at 7:49:15 PM UTC-7, Warren Strange wrote: >>> >>> >>> I am trying to use a pod preset to mount a volume. >>> >>> My pod containers are getting enriched with the podpreset volume mounts, >>> but the init container is not. >>> >>> bug or feature? >>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Kubernetes user discussion and Q&A" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to kubernetes-users+unsubscr...@googlegroups.com. >> To post to this group, send email to kubernetes-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/kubernetes-users. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.