【问题标题】:How to fix unexpected node type with ksonnet?如何使用 ksonnet 修复意外的节点类型?
【发布时间】:2018-03-04 02:16:42
【问题描述】:

当我尝试使用 ksonnet 设置参数时出现错误

ks param set --env=prow workflows name some-name
ERROR Invalid params schema -- did not expect node type: *ast.ApplyBrace

我的参数文件看起来像

local params = import "../../components/params.libsonnet";
params {
  components+: {
    // Insert component parameter overrides here. Ex:
    // guestbook +: {
    //   name: "guestbook-dev",
    //   replicas: params.global.replicas,
    // },
    workflows +: {
      name: "some-name",
    },
  },
}

【问题讨论】:

    标签: ksonnet


    【解决方案1】:

    为参数添加一个加号修复它。

    local params = import "../../components/params.libsonnet";
    params +{
      components+: {
        // Insert component parameter overrides here. Ex:
        // guestbook +: {
        //   name: "guestbook-dev",
        //   replicas: params.global.replicas,
        // },
        workflows +: {
          name: "some-name",
        },
      },
    }
    

    【讨论】:

      猜你喜欢
      • 2014-10-30
      • 1970-01-01
      • 2019-09-25
      • 1970-01-01
      • 2017-10-11
      • 1970-01-01
      • 1970-01-01
      • 2019-04-01
      • 1970-01-01
      相关资源
      最近更新 更多