pub enum NodeAffinity {
Nodes {
node_ids: Vec<String>,
},
Labels {
labels: HashMap<String, String>,
},
}Expand description
Constrains which nodes are allowed to host a given secret’s
decryptable form. Used as the value of ReplicatedSecret.node_affinity.
None on a secret = unconstrained (any node may host); Some(...)
= only matching nodes receive a wrap of this row’s DEK material,
and the API gate filters reads accordingly.
Variants§
Nodes
Explicit allow-list of node_ids.
Labels
Match by node labels — every entry in the map must be present on the node. Empty map matches every node.
Trait Implementations§
Source§impl Clone for NodeAffinity
impl Clone for NodeAffinity
Source§fn clone(&self) -> NodeAffinity
fn clone(&self) -> NodeAffinity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for NodeAffinity
impl ComposeSchema for NodeAffinity
Source§impl Debug for NodeAffinity
impl Debug for NodeAffinity
Source§impl<'de> Deserialize<'de> for NodeAffinity
impl<'de> Deserialize<'de> for NodeAffinity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NodeAffinity
impl Serialize for NodeAffinity
Auto Trait Implementations§
impl Freeze for NodeAffinity
impl RefUnwindSafe for NodeAffinity
impl Send for NodeAffinity
impl Sync for NodeAffinity
impl Unpin for NodeAffinity
impl UnsafeUnpin for NodeAffinity
impl UnwindSafe for NodeAffinity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more