Replies: 1 comment
-
Original reply by @verdverm in cuelang/cue#416 (comment)
You've applied the template to the first element only and you want to apply a def to the entire list. This will look just like defining any constrained list, where you can apply other defs/vals to an existing def/val
(this example does not perfectly align with what you have / want, it will depend on how you want to build up the final spec and pieces) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally opened by @jdstone-ig in cuelang/cue#416
I have the following template. If the definition contains more than one container (shown below), the second and subsequent containers (if any) don't contain the
tz-config
volumeMount. Only the first container,mysql
contains thetz-config
volumeMount. The second container,sanitizer
just shows{}
in its place. The actual evaluation and the expected evaluation are below.NOTE: I've pulled out a bunch of irrelevant information for easier readability.
template.cue
deployment.cue
actual evaluation
expected evaluation
Beta Was this translation helpful? Give feedback.
All reactions