如何使用kso​​nnet修复意外的节点类型?

时间:2018-03-04 02:16:42

标签: ksonnet

当我尝试使用kso​​nnet设置参数时,我收到错误

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",
    },
  },
}

1 个答案:

答案 0 :(得分:0)

为params添加加号修复它。

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",
    },
  },
}