func TestK8SServiceCustomResourcesEnabledFalseDoesNotCreateCustomResources(t *testing.T) {
	t.Parallel()
	helmChartPath, err := filepath.Abs(filepath.Join("..", "charts", "k8s-service"))
	require.NoError(t, err)
	options := &helm.Options{
		ValuesFiles: []string{filepath.Join("..", "charts", "k8s-service", "linter_values.yaml")},
		SetValues:   map[string]string{"customResources.enabled": "false"},
	}
	_, err = helm.RenderTemplateE(t, options, helmChartPath, "customresources", []string{"templates/customresources.yaml"})
	require.Error(t, err)
}
Test that setting customResources.enabled = false will cause the helm template to not render any custom resources
package test
import (
	"path/filepath"
	"testing"
	"github.com/ghodss/yaml"
	"github.com/gruntwork-io/terratest/modules/helm"
	"github.com/stretchr/testify/require"
	corev1 "k8s.io/api/core/v1"
)