KusionStack / konfig

Shared repository of application models and components, and CI suite for GitOps workflows
Apache License 2.0
27 stars 32 forks source link

How to reference variables? #31

Closed LeoLiuYan closed 1 year ago

LeoLiuYan commented 2 years ago

General Question

For example,

TEST_A = "a"

TEST_MAP: {str:str} = {
    TEST_A = "b"
}

output:

TEST_A: a
TEST_MAP:
  TEST_A: b

expect:

TEST_A: a
TEST_MAP:
  a: b

@Peefy @chai2010

LeoLiuYan commented 2 years ago

It works,

TEST_A = "a"

TEST_MAP: {str:str} = {
    str(TEST_A) = "b"
}
howieyuen commented 1 year ago

/close