如果我使用jinja模板,我可以通过命令行覆盖属性,如下所示:
--properties zone:us-central1-a,machineType:n1-standard-1,image:debian-9但是,我没有看到使用嵌套属性(例如标签或environmentVariables )来执行此操作的文档或示例:
resources:
- name: resource-name
type: 'gcp-types/cloudfunctions-v1:projects.locations.functions'
properties:
labels:
testlabel1: testlabel1value
testlabel2: testlabel2value
environmentVariables:
TEST: 'zzzzzzzzz'如何设置这样的属性?这不起作用:--properties labels:testlabel1:newvalue
发布于 2020-08-18 14:25:54
经过一些尝试和错误之后,我设法通过命令行传递了一个对象,如下所示:
--properties ^~^labels:{'testlabel1: testlabel1value','testlabel2: testlabel2value'}~environmentVariables:{'TEST: zzzzzzzzz'}https://stackoverflow.com/questions/58312931
复制相似问题