pub struct AirflowClusterDagProcessorsConfigAffinity {
pub node_affinity: Option<BTreeMap<String, Value>>,
pub node_selector: Option<BTreeMap<String, String>>,
pub pod_affinity: Option<BTreeMap<String, Value>>,
pub pod_anti_affinity: Option<BTreeMap<String, Value>>,
}Expand description
These configuration settings control [Pod placement](https://docs.stackable.tech/home/nightly/concepts/operations/pod_placement).
Fields§
§node_affinity: Option<BTreeMap<String, Value>>Same as the spec.affinity.nodeAffinity field on the Pod, see the [Kubernetes docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node)
node_selector: Option<BTreeMap<String, String>>Simple key-value pairs forming a nodeSelector, see the [Kubernetes docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node)
pod_affinity: Option<BTreeMap<String, Value>>Same as the spec.affinity.podAffinity field on the Pod, see the [Kubernetes docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node)
pod_anti_affinity: Option<BTreeMap<String, Value>>Same as the spec.affinity.podAntiAffinity field on the Pod, see the [Kubernetes docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node)
Trait Implementations§
Source§impl Clone for AirflowClusterDagProcessorsConfigAffinity
impl Clone for AirflowClusterDagProcessorsConfigAffinity
Source§fn clone(&self) -> AirflowClusterDagProcessorsConfigAffinity
fn clone(&self) -> AirflowClusterDagProcessorsConfigAffinity
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 Default for AirflowClusterDagProcessorsConfigAffinity
impl Default for AirflowClusterDagProcessorsConfigAffinity
Source§fn default() -> AirflowClusterDagProcessorsConfigAffinity
fn default() -> AirflowClusterDagProcessorsConfigAffinity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AirflowClusterDagProcessorsConfigAffinity
impl<'de> Deserialize<'de> for AirflowClusterDagProcessorsConfigAffinity
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
impl StructuralPartialEq for AirflowClusterDagProcessorsConfigAffinity
Auto Trait Implementations§
impl Freeze for AirflowClusterDagProcessorsConfigAffinity
impl RefUnwindSafe for AirflowClusterDagProcessorsConfigAffinity
impl Send for AirflowClusterDagProcessorsConfigAffinity
impl Sync for AirflowClusterDagProcessorsConfigAffinity
impl Unpin for AirflowClusterDagProcessorsConfigAffinity
impl UnsafeUnpin for AirflowClusterDagProcessorsConfigAffinity
impl UnwindSafe for AirflowClusterDagProcessorsConfigAffinity
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