mirror of https://github.com/pulumi/pulumi.git
72d52c6e1f
Configuration keys are simple namespace/name pairs, delimited by ":". For compatability, we also allow "<namespace>:config:<name>", but we always record the "nice" name in `Pulumi.<stack-name>.yaml`. While `pulumi config` and friends would block setting a key like `a🅱️c` (where the "name" has a colon in it), it would allow `a:config:b:c`. However, this would be recorded as `a🅱️c` in `Pulumi.<stack-name>.yaml`, which meant we'd error when parsing the configuration file later. To work around this, disallow ":" in the "name" part of a configuration key. With this change the following all work: ``` keyName my-project:keyName my-project:config:keyName ``` However, both `my-project:keyName:subKey` `my-project:config:keyName:subKey` are now disallowed. I considered allowing colons in subkeys, but I think it adds more confusion (due to the interaction with how we allow you elide the project name in the default case) than is worthwhile at this point. Fixes #2171 |
||
---|---|---|
.. | ||
crypt.go | ||
key.go | ||
key_test.go | ||
map.go | ||
map_test.go | ||
value.go | ||
value_test.go |