File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
sessionspaces/src/resources Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ pub async fn create_configmap(
65
65
configmaps
66
66
. patch (
67
67
NAME ,
68
- & PatchParams :: default ( ) ,
68
+ & PatchParams {
69
+ field_manager : Some ( "sessionspaces" . to_string ( ) ) ,
70
+ ..Default :: default ( )
71
+ } ,
69
72
& Patch :: Apply ( & ConfigMap {
70
73
metadata : ObjectMeta {
71
74
name : Some ( NAME . to_string ( ) ) ,
Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ pub async fn create_namespace(
38
38
let api = Api :: < Namespace > :: all ( k8s_client. clone ( ) ) ;
39
39
api. patch (
40
40
& namespace,
41
- & PatchParams :: default ( ) ,
41
+ & PatchParams {
42
+ field_manager : Some ( "sessionspaces" . to_string ( ) ) ,
43
+ ..Default :: default ( )
44
+ } ,
42
45
& Patch :: Apply ( & Namespace {
43
46
metadata : ObjectMeta {
44
47
name : Some ( namespace. clone ( ) ) ,
@@ -67,7 +70,10 @@ mod tests {
67
70
async fn create_new_namespace ( ) {
68
71
let mut server = Server :: new_async ( ) . await ;
69
72
let mock_patch_test_namespace = server
70
- . mock ( "PATCH" , "/api/v1/namespaces/test?" )
73
+ . mock (
74
+ "PATCH" ,
75
+ "/api/v1/namespaces/test?&fieldManager=sessionspaces" ,
76
+ )
71
77
. with_status ( 201 )
72
78
. with_header ( "content-type" , "application/json" )
73
79
. with_body (
You can’t perform that action at this time.
0 commit comments