mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-02 06:12:37 +00:00
K-EXPLORER: set DeletePropagationBackground for the delete option
This commit is contained in:
parent
1dd514a7f8
commit
5d9667043a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user