File tree Expand file tree Collapse file tree
crates/stackable-webhook/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ impl<'a> CustomResourceDefinitionMaintainer<'a> {
144144 operator_namespace,
145145 webhook_https_port,
146146 operator_name,
147+ field_manager,
147148 disabled,
148149 } = self . options ;
149150
@@ -211,7 +212,7 @@ impl<'a> CustomResourceDefinitionMaintainer<'a> {
211212
212213 // Deploy the updated CRDs using a server-side apply.
213214 let patch = Patch :: Apply ( & crd) ;
214- let patch_params = PatchParams :: apply ( operator_name ) ;
215+ let patch_params = PatchParams :: apply ( field_manager ) ;
215216 crd_api
216217 . patch ( & crd_name, & patch_params, & patch)
217218 . await
@@ -241,6 +242,9 @@ pub struct CustomResourceDefinitionMaintainerOptions<'a> {
241242 /// The namespace the operator/conversion webhook runs in.
242243 pub operator_namespace : & ' a str ,
243244
245+ /// The field manager used when maintaining the CRDs.
246+ pub field_manager : & ' a str ,
247+
244248 /// The HTTPS port the conversion webhook listens on.
245249 pub webhook_https_port : u16 ,
246250
Original file line number Diff line number Diff line change @@ -265,6 +265,7 @@ impl ConversionWebhookServer {
265265 crds_and_handlers : impl IntoIterator < Item = ( CustomResourceDefinition , H ) > + Clone ,
266266 operator_name : & ' a str ,
267267 operator_namespace : & ' a str ,
268+ field_manager : & ' a str ,
268269 disable_maintainer : bool ,
269270 client : Client ,
270271 ) -> Result <
@@ -298,6 +299,7 @@ impl ConversionWebhookServer {
298299 disabled : disable_maintainer,
299300 operator_namespace,
300301 operator_name,
302+ field_manager,
301303 } ;
302304
303305 let ( maintainer, initial_reconcile_rx) = CustomResourceDefinitionMaintainer :: new (
You can’t perform that action at this time.
0 commit comments