kcl-lang / konfig

KCL Kubernetes Config Abstraction & Composition Module
https://kcl-lang.io
Apache License 2.0
7 stars 6 forks source link

Maybe the code or environment variable is an array. If I overwrite it, it will be overwritten as a whole. If it is a dictionary, it will be better to cover it individually. #6

Closed riven-blade closed 6 months ago

riven-blade commented 6 months ago

Feature Request

Is your feature request related to a problem? Please describe:

Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

  env = [
        e.Env {
            name = "app.version"
            value = "v1.0.0"
        }
    ]
Peefy commented 6 months ago

Good advice. It is the best practice. https://www.kcl-lang.io/docs/user_docs/guides/working-with-konfig/practice#use-dict-instead-of-list-as-much-as-possible