-
Notifications
You must be signed in to change notification settings - Fork 136
Expand more data in the template #70
Comments
This would be useful for other projects too, see: |
I had this in my initial prototype and specifically avoided it because templating is a hot topic of debate in the K8s space right now. I would much rather see this solved by templating rules that compose with (or even wrap) these rules. |
I'm going to close this for now, but happy to continue the discussion. If specific items fall out of further discussion, let's open more bugs. WDYT? |
It is mostly a question of what the purpose of the k8s rules is. if it is to configure the k8s templates for the given build, then we should look for a templating solution as part of it. I have an idea that I will try today and keep you posted. |
At this point I would say: mostly development. I want folks to be able to build/push/deploy in a tight cycle, and for that Bazel needs to be able to model the dependencies of the K8s resources. There is possibility for involving this in a release process to "freeze" templates via something like: bazel run :everything > release.yaml (I use that here) I agree that templating is often the next thing folks will want, but the DSL wars for K8s are just getting started, so my goal is for You can see some of the original discussion on this here. |
@ensonic ... and yes, keep me posted (but I'm OOTO starting tonight). |
The problem with |
|
is there a way to use a list or object in the template? |
Since k8s_object is already running substitution to apply project settings, it would be nice if one culd substitute other variables too.
1.) One option could be to specify an extra dict of key:value pairs that it would add to the substitutions it sets up for the images:
The text was updated successfully, but these errors were encountered: