K-EXPLORER: set DeletePropagationBackground for the delete option

This commit is contained in:
niusmallnan 2023-07-14 09:34:03 +08:00
parent 1dd514a7f8
commit 5d9667043a

View File

@ -522,6 +522,12 @@ func (s *Store) Delete(apiOp *types.APIRequest, schema *types.APISchema, id stri
return nil, nil, nil
}
// K-EXPLORER
prop := metav1.DeletePropagationBackground
if opts.PropagationPolicy == nil {
opts.PropagationPolicy = &prop
}
buffer := WarningBuffer{}
k8sClient, err := metricsStore.Wrap(s.clientGetter.TableClient(apiOp, schema, apiOp.Namespace, &buffer))
if err != nil {