File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -804,6 +804,9 @@ export class KubeSdk {
804
804
retry : 0 ,
805
805
timeout : this . kubeApiTimeout ,
806
806
json : spec ,
807
+ searchParams : {
808
+ fieldManager : this . fieldManager || 'refine' ,
809
+ } ,
807
810
} )
808
811
. json ( ) ;
809
812
@@ -832,13 +835,10 @@ export class KubeSdk {
832
835
timeout : this . kubeApiTimeout ,
833
836
retry : 0 ,
834
837
json,
835
- searchParams :
836
- strategy === 'application/apply-patch+yaml'
837
- ? {
838
- fieldManager : this . fieldManager || 'refine' ,
839
- force : true ,
840
- }
841
- : undefined ,
838
+ searchParams : {
839
+ fieldManager : this . fieldManager || 'refine' ,
840
+ ...( strategy === 'application/apply-patch+yaml' && { force : true } ) ,
841
+ } ,
842
842
} )
843
843
. json ( ) ;
844
844
@@ -852,6 +852,9 @@ export class KubeSdk {
852
852
retry : 0 ,
853
853
timeout : this . kubeApiTimeout ,
854
854
json : spec ,
855
+ searchParams : {
856
+ fieldManager : this . fieldManager || 'refine' ,
857
+ } ,
855
858
} )
856
859
. json ( ) ;
857
860
You can’t perform that action at this time.
0 commit comments