【问题标题】:Runtime config variable Google Deployment manager运行时配置变量 Google 部署管理器
【发布时间】:2018-04-05 17:01:27
【问题描述】:

无法创建 google 部署管理器运行时配置变量

resources:
- name: star-config
  type: runtimeconfig.v1beta1.config
  properties:
    name: star-config

- name: igurl_variable
  type: runtimeconfig.v1beta1.variable
  properties:
   name: igurl_variable
   value: 'trek'
   parent: $(ref.star-config.name)

我检查了日志,发现在创建上述部署时状态设置为 bad_request。

Audit log
status: {
   message:  "BAD_REQUEST"


  }

错误的原因可能是什么?

【问题讨论】:

    标签: google-deployment-manager


    【解决方案1】:

    您应该尝试使用configvariable 资源的官方文档中的属性字段。

    资源文件应该是这样的:

    resources:
        - name: star-config
          type: runtimeconfig.v1beta1.config
          properties:
            config: star-config
    
        - name: igurl_variable
          type: runtimeconfig.v1beta1.variable
          properties:
           variable: igurl_variable
           text: 'trek'
           parent: $(ref.star-config.name)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-02-05
      • 2019-05-19
      • 1970-01-01
      • 2023-03-16
      • 2012-07-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多