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
Basically volume defined in trait is missing after the merge.
After debugging the kubevela codebase we observed that the kubevela is calling cue's Unify function to do the merging of volumes and it is not generating the expected output causing the above issue.
@shivin are you able to share a reproducer that relies solely on the cue tool or a small Go program using CUE's Go APIs? It's significantly harder to understand what's going on if the reproduction steps involve calling a third party tool such as vela, as that involves thousands of lines of code that we are unfamiliar with.
Please find attached the go program which reproduces the issues using cue Go APIs.
On running the program you will see the below output:
kind: "Deployment"
// +patchKey=name
volumes: [{
name: "myEmpty"
}]
To see the expected output you can follow these workaround steps: If you put a comment on line 15 and uncomment line 16 in main.go and then run the program you will see the following output:
kind: "Deployment"
// +patchKey=name
volumes: [{
name: "myEmpty"
}, {
name: "my-default-vol"
}, ...]
Please note that I have used latest cue v0.11.0 for running this program. Please let me know if you need anything else. Thanks.
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Didn't try
Testing environment ?
What did you do?
vela def apply comp.cue
vela def apply trait.cue
vela dry-run -f app.yaml
What did you expect to see?
After running the dry-run command we expect to see the below output:
What did you see instead?
After running the dry-run command we are seeing below output instead:
Issue Description ?
Basically volume defined in trait is missing after the merge.
After debugging the kubevela codebase we observed that the kubevela is calling cue's Unify function to do the merging of volumes and it is not generating the expected output causing the above issue.
You can read more about the issue here
The text was updated successfully, but these errors were encountered: