@@ -23,6 +23,7 @@ use stackable_operator::{
2323 } ,
2424 kube:: { CustomResource , ResourceExt , runtime:: reflector:: ObjectRef } ,
2525 memory:: { BinaryMultiple , MemoryQuantity } ,
26+ patchinator:: ObjectOverrides ,
2627 product_config_utils:: { self , Configuration } ,
2728 product_logging:: { self , spec:: Logging } ,
2829 role_utils:: { GenericRoleConfig , JavaCommonConfig , Role , RoleGroup , RoleGroupRef } ,
@@ -128,7 +129,7 @@ pub mod versioned {
128129 /// A ZooKeeper cluster stacklet. This resource is managed by the Stackable operator for Apache ZooKeeper.
129130 /// Find more information on how to use it and the resources that the operator generates in the
130131 /// [operator documentation](DOCS_BASE_URL_PLACEHOLDER/zookeeper/).
131- #[ derive( Clone , CustomResource , Debug , Deserialize , JsonSchema , PartialEq , Serialize ) ]
132+ #[ derive( Clone , CustomResource , Debug , Deserialize , JsonSchema , Serialize ) ]
132133 #[ versioned( crd(
133134 group = "zookeeper.stackable.tech" ,
134135 plural = "zookeeperclusters" ,
@@ -155,8 +156,8 @@ pub mod versioned {
155156 pub servers :
156157 Option < Role < ZookeeperConfigFragment , ZookeeperServerRoleConfig , JavaCommonConfig > > ,
157158
158- /// TODO docs
159- pub object_overrides : Option < String > ,
159+ # [ serde ( flatten ) ]
160+ pub object_overrides : ObjectOverrides ,
160161 }
161162
162163 #[ derive( Clone , Debug , Deserialize , JsonSchema , PartialEq , Serialize ) ]
@@ -293,7 +294,7 @@ pub mod versioned {
293294 ///
294295 /// You can learn more about this in the
295296 /// [Isolating clients with ZNodes usage guide](DOCS_BASE_URL_PLACEHOLDER/zookeeper/usage_guide/isolating_clients_with_znodes).
296- #[ derive( Clone , CustomResource , Debug , Deserialize , JsonSchema , PartialEq , Serialize ) ]
297+ #[ derive( Clone , CustomResource , Debug , Deserialize , JsonSchema , Serialize ) ]
297298 #[ versioned( crd(
298299 group = "zookeeper.stackable.tech" ,
299300 plural = "zookeeperznodes" ,
@@ -307,6 +308,9 @@ pub mod versioned {
307308 /// The reference to the ZookeeperCluster that this ZNode belongs to.
308309 #[ serde( default ) ]
309310 pub cluster_ref : ClusterRef < ZookeeperCluster > ,
311+
312+ #[ serde( flatten) ]
313+ pub object_overrides : ObjectOverrides ,
310314 }
311315
312316 #[ derive( Clone , Default , Debug , Deserialize , Eq , JsonSchema , PartialEq , Serialize ) ]
0 commit comments