We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fa42c commit e9c2a02Copy full SHA for e9c2a02
test/e2e/network_test.go
@@ -82,7 +82,11 @@ func (n *NetworkTests) WaitForNamespace(t *testing.T) {
82
}
83
84
func (n *NetworkTests) DeleteNamespace(t *testing.T) {
85
- err := n.Kubernetes.ClientSet.CoreV1().Namespaces().Delete(context.Background(), n.Namespace, meta_v1.DeleteOptions{})
+ deletePolicy := meta_v1.DeletePropagationForeground
86
+ deleteOptions := meta_v1.DeleteOptions{
87
+ PropagationPolicy: &deletePolicy,
88
+ }
89
+ err := n.Kubernetes.ClientSet.CoreV1().Namespaces().Delete(context.Background(), n.Namespace, deleteOptions)
90
require.NoError(t, err, "There should be no error while deleting a namespace")
91
92
0 commit comments