A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ksonnet/ksonnet/issues/461 below:

(*ast.ImportStr) · Issue #461 · ksonnet/ksonnet · GitHub

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:

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4