From cf11ac2abf412e8cb9d879f3bfada65b8edc7553 Mon Sep 17 00:00:00 2001 From: Sergi Philipsen Date: Thu, 30 Nov 2023 16:46:32 +0100 Subject: [PATCH] fix: pod affinity was missing (#11) --- charts/drill/Chart.yaml | 2 +- charts/drill/templates/statefulset.yaml | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/charts/drill/Chart.yaml b/charts/drill/Chart.yaml index 33e47aa..74b891f 100644 --- a/charts/drill/Chart.yaml +++ b/charts/drill/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: drill -version: 1.2.11 +version: 1.2.12 appVersion: 1.21.1 description: Helm Charts for deploying Apache Drill Clusters on Kubernetes icon: https://raw.githubusercontent.com/wearefrank/charts/master/charts/drill/icon.svg diff --git a/charts/drill/templates/statefulset.yaml b/charts/drill/templates/statefulset.yaml index 5842372..02d5a08 100644 --- a/charts/drill/templates/statefulset.yaml +++ b/charts/drill/templates/statefulset.yaml @@ -24,16 +24,10 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- with .Values.affinity }} affinity: - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - drill-app - topologyKey: "kubernetes.io/hostname" + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.image.pullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }}