Skip to content

Instantly share code, notes, and snippets.

@sbose78
Created February 8, 2018 08:28
Show Gist options
  • Save sbose78/2dc06d74ca2ca1b7817a2575a25e5689 to your computer and use it in GitHub Desktop.
Save sbose78/2dc06d74ca2ca1b7817a2575a25e5689 to your computer and use it in GitHub Desktop.
func deleteNamespace(t *testing.T, clientset *kubernetes.Clientset, namespace string) {
if err := clientset.CoreV1().Namespaces().Delete(namespace, &metav1.DeleteOptions{}); err != nil {
t.Logf("error deleting namespace %q: %v", namespace, err)
}
t.Logf("successfully deleted namespace: %q", namespace)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment