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.

Cannot use importstr: ERROR find objects: output: unknown node type: (*ast.ImportStr) #461

@jessesuen

Description

@jessesuen

Is this a BUG REPORT or FEATURE REQUEST?: BUG REPORT

/kind bug

What happened:

I have the following components/nginx-configmap.jsonnet which imports two other files as strings:

{
  "kind": "ConfigMap",
  "apiVersion": "v1",
  "metadata": {
    "name": "nginx-configmap"
  },
  "data": {
    "nginx.conf": importstr "./nginx.conf",
    "proxy.conf": importstr "./proxy.conf",
  },
}

When I run this through jsonnet (e.g. jsonnet components/nginx-configmap.jsonnet) it works. However when I run this through ksonnet (e.g. ks show default) I get the following error:

$ ks show default
ERROR find objects: output: unknown node type: (*ast.ImportStr) &{{{/Users/jsuen/ws/ksonnet-examples/configmap-importfile/components/nginx-configmap.jsonnet {9 19} {9 43} 0xc4204414e0} <nil> []} 0xc420426780}

Not sure if this is a ksonnet or go-jsonnet issue.

Anything else we need to know?:

Environment:

  • ksonnet version (use ks version):
$ ks version
ksonnet version: dev-2018-04-17T14:57:47-0700
jsonnet version: v0.10.0
client-go version: 1.8

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