Implement the [variable(NAME)]
function in YAML for ApplicationConfigurations
#70
Comments
It would be super beneficial if this is an admission webhook. |
If it were an admission hook, then the version stored would not have the original template function anymore, right? |
[variable(NAME)]
function in YAML for OperationalConfigurations[variable(NAME)]
function in YAML for ApplicationConfigurations
Hi, @fibonacci1729 are you still working on this and going to use admission webhook? Or it should be closed by #161? I think #178 could also be fixed by admission webhook, if you are writing this, we can use the same framework. /cc @technosophos |
So I think it would be fine to do this as an admission webhook for a first pass. I like that idea a lot. Is that okay with you @fibonacci1729 ? Is that something you would like to do? |
My plan was to implement this in the simplest way (from file). Yesterday, I was scoping the work involved to support it as an admission hook and it seems relatively straightforward. So I'll adapt the current work to support the admission hook! |
Nice! |
I'm not sure whether we need |
We talked about that a lot on the spec. One of the requirements we got internally was to allow internal templating without Helm. I think we got a long way with the The syntax is largely derived from ARM templates, since one of the implementations was running the YAML through ARM. We might revisit this and see if there is a way to do this in pure YAML (we looked, for example, at YAML references as one possible way). |
Yes. This has been discussed before. And I agree that However, after a second thought,
|
Yes, you are correct. We probably could remove it from the spec, and then just use an external templater (helm is the obvious chose for me, but anyone could use the one they prefer). Maybe we should move this discussion back to the spec? |
Sure. That sounds great! |
For post-processing of operational configurations, there are a few places where the syntax
[fromVariable(NAME)]
should result in a substitution of a variable name into a value. This is described here: https://github.com/microsoft/hydra-spec/blob/master/6.operational_configuration.md#propertiesThe text was updated successfully, but these errors were encountered: