Skip to content

Commit

Permalink
Add docs on stackable_node_selector_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Mar 22, 2024
1 parent 9107737 commit 68f85f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/stackable-operator/src/commons/affinity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub struct StackableNodeSelector {

impl Atomic for StackableNodeSelector {}

/// We need a custom JsonSchema for [`StackableNodeSelector`], please have a look at the documentation there.
pub fn stackable_node_selector_schema(gen: &mut schemars::gen::SchemaGenerator) -> Schema {
Option::<BTreeMap<String, String>>::json_schema(gen)
}
Expand Down

0 comments on commit 68f85f3

Please sign in to comment.