0

当我尝试使用 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",
    },
  },
}
4

1 回答 1

0

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

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",
    },
  },
}
于 2018-03-04T02:16:42.253 回答