From 2cd50c6ff827ce465c2706b487cabf2368b20b7b Mon Sep 17 00:00:00 2001 From: Jack Lin Date: Thu, 11 May 2023 17:50:16 +0800 Subject: [PATCH] feat: add softAntiAffinity and zoneSoftAntiAffiny to volume spec ref: longhorn/longhorn 5358 Signed-off-by: Jack Lin --- chart/templates/crds.yaml | 14 ++++++++++++++ deploy/longhorn.yaml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/chart/templates/crds.yaml b/chart/templates/crds.yaml index d194896..2ee3f1f 100644 --- a/chart/templates/crds.yaml +++ b/chart/templates/crds.yaml @@ -3417,6 +3417,20 @@ spec: - least-effort - best-effort type: string + replicaSoftAntiAffinity: + description: Replica soft anti affinity of the volume. Set enabled to allow replicas to be scheduled on the same node + enum: + - ignored + - enabled + - disabled + type: string + replicaZoneSoftAntiAffinity: + description: Replica zone soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same zone + enum: + - ignored + - enabled + - disabled + type: string revisionCounterDisabled: type: boolean size: diff --git a/deploy/longhorn.yaml b/deploy/longhorn.yaml index 75fac9a..54533b9 100644 --- a/deploy/longhorn.yaml +++ b/deploy/longhorn.yaml @@ -3565,6 +3565,20 @@ spec: - least-effort - best-effort type: string + replicaSoftAntiAffinity: + description: Replica soft anti affinity of the volume. Set enabled to allow replicas to be scheduled on the same node + enum: + - ignored + - enabled + - disabled + type: string + replicaZoneSoftAntiAffinity: + description: Replica zone soft anti affinity of the volume. Set enabled to allow replicas to be scheduled in the same zone + enum: + - ignored + - enabled + - disabled + type: string revisionCounterDisabled: type: boolean size: