File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
22
22
"k8s.io/client-go/tools/clientcmd"
23
23
"k8s.io/client-go/tools/clientcmd/api"
24
24
toolswatch "k8s.io/client-go/tools/watch"
25
+ "k8s.io/utils/ptr"
25
26
"net/http/httptest"
26
27
"os"
27
28
"path/filepath"
@@ -232,7 +233,9 @@ func (c *mcpContext) crdApply(resource string) func() {
232
233
}
233
234
c .crdWaitUntilReady (crd .Name )
234
235
return func () {
235
- err = apiExtensionsV1Client .CustomResourceDefinitions ().Delete (c .ctx , crd .Name , metav1.DeleteOptions {})
236
+ err = apiExtensionsV1Client .CustomResourceDefinitions ().Delete (c .ctx , crd .Name , metav1.DeleteOptions {
237
+ GracePeriodSeconds : ptr .To (int64 (0 )),
238
+ })
236
239
if err != nil {
237
240
panic (fmt .Errorf ("failed to delete CRD %v" , err ))
238
241
}
You can’t perform that action at this time.
0 commit comments