-
Hi, I have a case where I have some helm installed resources already in the cluster and I want to migrate them to my tanka project. The issue I am facing is that now all the resources are names same way as a chart, but using tanka - naming convention by default is For example: local tanka = import 'github.com/grafana/jsonnet-libs/tanka-util/main.libsonnet';
local helm = tanka.helm.new(std.thisFile);
local k = import 'k.libsonnet';
{
namespace: k.core.v1.namespace.new('ns'),
chart: helm.template('name', '../../charts/chart-name, {
namespace: 'ns',
values: { },
}),
}
And my resource in the cluster current name is just I have tried passing empty string as name There is also What are my options with this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I am trying to understand options for the params for Digging deeper I realised that tanka does not do anything there as it just calls |
Beta Was this translation helpful? Give feedback.
I am trying to understand options for the params for
helm.template()
. I believe it is this one https://github.com/grafana/tanka/blob/main/pkg/helm/jsonnet.go#L39?Digging deeper I realised that tanka does not do anything there as it just calls
helm template
with what you pass as the arguments. In general this is specific helm chart internal details which resulted this behaviour.