helm_uninstall.md

April 10, 2025 ยท View on GitHub

helm_uninstall

helm_uninstall(name, kubernetes_context, namespace, namespace_dep, release_name, wait)

Uninstall a helm release.

To load the rule use:

load("//helm:defs.bzl", "helm_uninstall")

This rule builds an executable. Use run instead of build to be uninstall the helm release.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
kubernetes_contextThe name of the kubeconfig context to use.StringoptionalNone
namespaceThe namespace where the helm release is installed.Stringoptional""
namespace_depA reference to a k8s_namespace rule from where to extract the namespace where the helm release is installed.LabeloptionalNone
release_nameThe name of the helm release to be installed or upgraded.Stringrequired
waitHelm flag to wait for all resources to be created to exit.BooleanoptionalTrue