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 (
2222 "k8s.io/client-go/tools/clientcmd"
2323 "k8s.io/client-go/tools/clientcmd/api"
2424 toolswatch "k8s.io/client-go/tools/watch"
25+ "k8s.io/utils/ptr"
2526 "net/http/httptest"
2627 "os"
2728 "path/filepath"
@@ -232,7 +233,9 @@ func (c *mcpContext) crdApply(resource string) func() {
232233 }
233234 c .crdWaitUntilReady (crd .Name )
234235 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+ })
236239 if err != nil {
237240 panic (fmt .Errorf ("failed to delete CRD %v" , err ))
238241 }
You can’t perform that action at this time.
0 commit comments