You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/pkg/kubectl/delete.go

19 lines
425 B

package kubectl
// Delete removes a chart from Kubernetes.
func (r RealRunner) Delete(name, ktype string) ([]byte, error) {
args := []string{"delete", ktype, name}
return command(args...).CombinedOutput()
}
// Delete returns the commands to kubectl
func (r PrintRunner) Delete(name, ktype string) ([]byte, error) {
args := []string{"delete", ktype, name}
cmd := command(args...)
return []byte(cmd.String()), nil
}