acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.13k stars 100 forks source link

Unable to nest complex types in args #996

Open WoLfulus opened 1 year ago

WoLfulus commented 1 year ago

It's not possible to nest complex args as it will throw conflicts between values.

For example:

Acornfile

args: {
  database: {
    user: "postgres"
  }
}

database.yaml

user: "app-user"

Running

acorn render . --database @database.yaml

will cause errors

Error: args.database.user: conflicting values "app-user" and "postgres":
    Acornfile:3:11

Another way I tried was to set args to {}, and even though it works, as soon as I tried adding defaults to profiles, it ends up conflicting the same way as if I was passing values through cli.

cjellick commented 1 year ago

thanks. will take a look