func DeleteRelease(release, context string, logger *logrus.Logger) error {
	defer timer.Track(time.Now(), fmt.Sprintf("Helm DeleteRelease: %s", release), logger)
	args := []string{
		"delete",
		release,
	}
	if context != "" {
		args = append(args, "--kube-context", context)
	}
	c := exec.Command(_helmBinary, args...)
	o, err := c.CombinedOutput()
	if err != nil {
		return fmt.Errorf("%w - %s", err, string(o))
	}
	return nil
}
DeleteRelease deletes a chart release
package helm
import (
	"bufio"
	"bytes"
	"fmt"
	"os/exec"
	"strings"
	"time"
	"github.com/sirupsen/logrus"
	"github.com/newrelic/nri-kubernetes/v2/e2e/timer"
)
const _helmBinary = "helm"
func InstallRelease(releaseName, path, context string, logger *logrus.Logger, config ...string) error {
	defer timer.Track(time.Now(), "Helm InstallRelease", logger)
	args := []string{
		"install",
		releaseName,
		path,
		"--wait",
	}
	if len(config) > 0 {
		args = append(args, "--set", strings.Join(config, ","))
	}
	if context != "" {
		args = append(args, "--kube-context", context)
	}
	c := exec.Command(_helmBinary, args...)
	o, err := c.CombinedOutput()
	if err != nil {
		return fmt.Errorf("%w - %s", err, string(o))
	}
	return nil
}