Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

ks param list command shows error if components/params.libsonnet has null or array. #447

@jsakai

Description

@jsakai

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug

What happened:
ks param list command shows error if components/params.libsonnet has null or array.

vim components/params.libsonnet
{
  global: {
  },
  components: {
    ‘test-v1': {
      envs: null,
      },
  },
}

$ ks param list
ERROR get all component params for : Found an unsupported param AST node type: *ast.LiteralNull
vim components/params.libsonnet
{
  global: {
  },
  components: {
    ‘test-v1': {
      envs: [],
      },
  },
}

$ ks param list
ERROR get all component params for : Found an unsupported param AST node type: *ast.Array

Environment:

  • ksonnet version (use ks version):
    $ ks version
    ksonnet version: 0.9.2
    jsonnet version: v0.9.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions