You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I'm just starting out in cue and was hoping to get some assistance. I'm using k8s (EKS) pretty heavily and am keen to put cue to work to help - primarily with validation. However, I've hit a bit of a wall trying to validate the aws-authConfigMap.
This is an example of my ConfigMap (aws-auth.yaml):
However, the 'fix' obviously isn't suitable given that the number of entries in the aws-auth.yaml is not static - i.e. I've had to tailor my cue configuration to this specific example aws-auth.yaml.
Would really appreciate any feedback, suggestions regarding this. I'm pretty new to cue so hopefully I'm just missing something simple.
This discussion was converted from issue #2276 on April 10, 2023 16:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, I'm just starting out in cue and was hoping to get some assistance. I'm using k8s (EKS) pretty heavily and am keen to put cue to work to help - primarily with validation. However, I've hit a bit of a wall trying to validate the
aws-auth
ConfigMap.This is an example of my ConfigMap (
aws-auth.yaml
):I've come up with the following cue (
aws-auth.cue
) in an effort to validate the above:This is the result I get:
Via some experimentation, I've discovered that the following change to
aws-auth.cue
works when vetted against the aboveaws-auth.yaml
example:However, the 'fix' obviously isn't suitable given that the number of entries in the
aws-auth.yaml
is not static - i.e. I've had to tailor my cue configuration to this specific exampleaws-auth.yaml
.Would really appreciate any feedback, suggestions regarding this. I'm pretty new to cue so hopefully I'm just missing something simple.
Kind regards
Nick
Beta Was this translation helpful? Give feedback.
All reactions