Skip to content

Commit 2ae3ac9

Browse files
committed
Rename stackable_node_selector_schema -> optional_stackable_node_selector_schema
1 parent 68f85f3 commit 2ae3ac9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/stackable-operator/src/commons/affinity.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ pub struct StackableAffinity {
3939
pub pod_affinity: Option<PodAffinity>,
4040
pub pod_anti_affinity: Option<PodAntiAffinity>,
4141
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"))]
4444
pub node_selector: Option<StackableNodeSelector>,
4545
}
4646

@@ -61,7 +61,7 @@ pub struct StackableNodeSelector {
6161
impl Atomic for StackableNodeSelector {}
6262

6363
/// 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 {
6565
Option::<BTreeMap<String, String>>::json_schema(gen)
6666
}
6767

0 commit comments

Comments
 (0)