cuisongliu / automq-operator

8 stars 1 forks source link

support affinity #64

Open cuisongliu opened 7 hours ago

cuisongliu commented 7 hours ago
type AffinitySpec struct {
    // NodeAffinity is the node affinity for the pod
    NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty"`
    // PodAntiAffinity is the pod anti-affinity for the pod
    PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty"`
    // PodAffinity is the pod affinity for the pod
    PodAffinity *PodAffinity `json:"podAffinity,omitempty"`
}

support affinity , soft affinity and hard affinity

cuisongliu commented 7 hours ago
image

imp this func.

add e2e test for this func

yasyx commented 6 hours ago

Please assign it to me