File tree 1 file changed +3
-3
lines changed
crates/stackable-operator/src/commons
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ pub struct StackableAffinity {
39
39
pub pod_affinity : Option < PodAffinity > ,
40
40
pub pod_anti_affinity : Option < PodAntiAffinity > ,
41
41
pub node_affinity : Option < NodeAffinity > ,
42
- #[ schemars( schema_with = "stackable_node_selector_schema " ) ]
43
- #[ fragment_attrs( schemars( schema_with = "stackable_node_selector_schema " ) ) ]
42
+ #[ schemars( schema_with = "optional_stackable_node_selector_schema " ) ]
43
+ #[ fragment_attrs( schemars( schema_with = "optional_stackable_node_selector_schema " ) ) ]
44
44
pub node_selector : Option < StackableNodeSelector > ,
45
45
}
46
46
@@ -61,7 +61,7 @@ pub struct StackableNodeSelector {
61
61
impl Atomic for StackableNodeSelector { }
62
62
63
63
/// We need a custom JsonSchema for [`StackableNodeSelector`], please have a look at the documentation there.
64
- pub fn stackable_node_selector_schema ( gen : & mut schemars:: gen:: SchemaGenerator ) -> Schema {
64
+ pub fn optional_stackable_node_selector_schema ( gen : & mut schemars:: gen:: SchemaGenerator ) -> Schema {
65
65
Option :: < BTreeMap < String , String > > :: json_schema ( gen)
66
66
}
67
67
You can’t perform that action at this time.
0 commit comments