I have a jsonnet file
local version = std.extVar('version');
local entities = std.extVar('entities');
{
appname::'app-dev',
version::version,
entities::entities,
}
The version field seems to be a string, but "entities" field is an array that is located near jsonnet file.
I am using kubecfg show
to create json file and substitute variables like this:
kubecfg show test.jsonnet --ext-str "version=$VERSION" --ext-str "entities=$(cat entities.txt)"
Of course, during this command I receive an error:
got "string", expected "array";
Is there any way to substitute array using kubecfg show
?