store only computed values in compute layer

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-04-07 18:41:44 -07:00
parent 5381d0bfe1
commit e54f1b0c3a
7 changed files with 80 additions and 94 deletions

View File

@@ -56,7 +56,7 @@ var queryCmd = &cobra.Command{
lg.Fatal().Err(err).Msg("failed to query deployment")
}
cueVal := compiler.EmptyStruct()
cueVal := compiler.NewValue()
if !viper.GetBool("no-plan") {
if err := cueVal.FillPath(cue.MakePath(), result.Plan()); err != nil {