MCPcopy Create free account
hub / github.com/devspace-sh/devspace / DeleteNamespace

Method DeleteNamespace

e2e/kube/kube.go:94–100  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

92}
93
94func (k *KubeHelper) DeleteNamespace(name string) error {
95 err := k.client.KubeClient().CoreV1().Namespaces().Delete(context.TODO(), name, metav1.DeleteOptions{})
96 if err != nil && !kerrors.IsNotFound(err) {
97 return err
98 }
99 return nil
100}

Callers 10

ExpectDeleteNamespaceFunction · 0.80
deploy.goFile · 0.80
init.goFile · 0.80
inject.goFile · 0.80
pullsecrets.goFile · 0.80
imports.goFile · 0.80
sync.goFile · 0.80
hooks.goFile · 0.80
dependencies.goFile · 0.80
config.goFile · 0.80

Calls 1

KubeClientMethod · 0.65

Tested by

no test coverage detected