Skip to content

Commit

Permalink
fix label selector for affinity rules
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Billimek <[email protected]>
  • Loading branch information
billimek committed Jun 24, 2020
1 parent e87dbab commit af2647a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion helm/vernemq/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v1
appVersion: 1.10.3
description: VerneMQ is a high-performance, distributed MQTT message broker
name: vernemq
version: 1.6.3
version: 1.6.4
icon: http://www.stickpng.com/assets/thumbs/58482b21cef1014c0b5e4a24.png
12 changes: 2 additions & 10 deletions helm/vernemq/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,10 @@ spec:
- topologyKey: "kubernetes.io/hostname"
labelSelector:
matchExpressions:
- key: "app"
- key: "app.kubernetes.io/name"
operator: In
values:
- {{ include "vernemq.name" . }}
- key: "release"
operator: In
values:
- {{ .Release.Name }}
{{- else if eq .Values.podAntiAffinity "soft" }}
affinity:
podAntiAffinity:
Expand All @@ -146,14 +142,10 @@ spec:
topologyKey: "kubernetes.io/hostname"
labelSelector:
matchExpressions:
- key: "app"
- key: "app.kubernetes.io/name"
operator: In
values:
- {{ include "vernemq.name" . }}
- key: "release"
operator: In
values:
- {{ .Release.Name }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
Expand Down

0 comments on commit af2647a

Please sign in to comment.