Allow base job template variables' properties to be valid placeholders #17622
Unanswered
kevingrismore
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine I have a base job template with a variable that's an object with many properties. I want this variable to be a singular structured object for validation, readability, and conceptual relatedness. However, I also want to retain the readability and flexibility of the job configuration because of the way it can map directly to the shape of configuration that's submitted to infrastructure.
One change that could make this possible is accepting placeholders that use dot operators to represent paths to individual properties of variables. Right now, this fails validation upon attempting to update a work pool because the placeholders aren't referencing root level keys from
variables
:The worker uses
apply_values
to fill in the template with variable references, which I'm pretty sure would enable this to work if it were allowed.>>> Hello, John Doe!
I'm curious if anything about this pattern complicates the work pool templating concept too much.
Beta Was this translation helpful? Give feedback.
All reactions