From f447a27b650f9b4087018f2f4f8ad9098e5b9703 Mon Sep 17 00:00:00 2001 From: Abhilash Shetty Date: Wed, 3 Jul 2024 13:33:57 +0000 Subject: [PATCH] feat(helm): remove pod anti affinity Signed-off-by: Abhilash Shetty --- deploy/helm/charts/templates/lvm-controller.yaml | 10 ---------- tests/lvm_utils.go | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/deploy/helm/charts/templates/lvm-controller.yaml b/deploy/helm/charts/templates/lvm-controller.yaml index e566119a..5ba84ed9 100644 --- a/deploy/helm/charts/templates/lvm-controller.yaml +++ b/deploy/helm/charts/templates/lvm-controller.yaml @@ -23,16 +23,6 @@ spec: {{ toYaml . | nindent 8 }} {{- end}} spec: - affinity: - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - openebs-lvm-controller - topologyKey: "kubernetes.io/hostname" {{- if .Values.lvmController.priorityClass.create }} priorityClassName: {{ template "lvmlocalpv.lvmController.priorityClassName" . }} {{- end }} diff --git a/tests/lvm_utils.go b/tests/lvm_utils.go index 6fd211cc..c1576b4e 100644 --- a/tests/lvm_utils.go +++ b/tests/lvm_utils.go @@ -147,7 +147,7 @@ func extendVg(name string, device string) { gomega.Expect(err_vg).To(gomega.BeNil(), "vg extend failed") } -// Does vgremove on specified vg with -y flag if vg isnt empty after fer retires. +// Does vgremove on specified vg with -y flag if vg isnt empty after few retires. func removeVg(name string) { ginkgo.By("Removing vg") retries := 3