kuberneteskubernetes-helmjsonnetgrafana-tanka

How to skip helm tests deployment in Grafana Tanka


I am trying to deploy helm chart via tanka and as I have understood - tanka does helm template and then works with the generated outputs.

The issue with this is that all the chart tests are being rendered as well and then tk diff/apply fails.

Is there a way to ignore them?

Example:

local tanka = import 'github.com/grafana/jsonnet-libs/tanka-util/main.libsonnet';
local helm = tanka.helm.new(std.thisFile);

{
  myChart:  helm.template('chart', '../../charts/mychart', {
     namespace: 'mychart',
     values: {
       ...
     },
   }),
}

Solution

  • It turns out tanka has a flag to handle this:

    Usage example:

    local tanka = import 'github.com/grafana/jsonnet-libs/tanka-util/main.libsonnet';
    local helm = tanka.helm.new(std.thisFile);
    
    
    {
      myChart:  helm.template('chart', '../../charts/mychart', {
         namespace: 'mychart',
         values: {
           ...
         },
        skipTests: true,
       }),
    }