We want to adapt our platform to make use of extensions, but the usage of the extender is not that clear.
If using extender, the platform MUST execute extender in either or both of: the build environment, the run environment
In addition with this comment, it seems like the extender must be called from the build image when called with --build and from the run image when called with --run. But the either or both in the spec is a bit confusing.
- If so - what is the background for calling the
extender (run) in the context of the run image? Both detect and generate are already executed and "only" executing kaniko is still missing and the image should not make any difference there, right?
Background of this question is that it would complicate things quite a bit, e.g.:
- Calling it from within the
creator, see issue
- Implementing a platform from within a container, e.g. cnbBuild
The usage of the extender is not clearly specified, imho.
extender (build) MUST be called regardless of any extension present since it includes the build
extender (run) MUST NOT be called if there is no run extension detected. At least judging by the reference implementation. Wouldn't it be easier if the extender (run) can always be called and might do nothing?
We want to adapt our platform to make use of extensions, but the usage of the
extenderis not that clear.In addition with this comment, it seems like the
extendermust be called from thebuildimage when called with--buildand from therunimage when called with--run. But theeither or bothin the spec is a bit confusing.extender (run)in the context of therunimage? Bothdetectandgenerateare already executed and "only" executingkanikois still missing and the image should not make any difference there, right?Background of this question is that it would complicate things quite a bit, e.g.:
creator, see issueThe usage of the
extenderis not clearly specified, imho.extender (build)MUST be called regardless of any extension present since it includes thebuildextender (run)MUST NOT be called if there is no run extension detected. At least judging by the reference implementation. Wouldn't it be easier if theextender (run)can always be called and might do nothing?