Apply suggestions from code review

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Marco Kilchhofer 2021-09-16 20:43:08 +02:00
parent 2ff27f0211
commit f2d8b4c9d0
5 changed files with 15 additions and 15 deletions

View file

@ -118,10 +118,10 @@ spec:
affinity:
{{- toYaml .Values.controller.affinity | nindent 8 }}
{{- end }}
{{- if .Values.controller.topologySpreadConstraints }}
{{- with .Values.controller.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range $constraint := .Values.controller.topologySpreadConstraints }}
- {{ $constraint | toYaml | nindent 8 | trim }}
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 8 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels:

View file

@ -126,10 +126,10 @@ spec:
affinity:
{{- toYaml .Values.repoServer.affinity | nindent 8 }}
{{- end }}
{{- if .Values.repoServer.topologySpreadConstraints }}
{{- with .Values.repoServer.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range $constraint := .Values.repoServer.topologySpreadConstraints }}
- {{ $constraint | toYaml | nindent 8 | trim }}
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 8 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels:

View file

@ -140,10 +140,10 @@ spec:
affinity:
{{- toYaml .Values.server.affinity | nindent 8 }}
{{- end }}
{{- if .Values.server.topologySpreadConstraints }}
{{- with .Values.server.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range $constraint := .Values.server.topologySpreadConstraints }}
- {{ $constraint | toYaml | nindent 8 | trim }}
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 8 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels:

View file

@ -112,10 +112,10 @@ spec:
affinity:
{{- toYaml .Values.dex.affinity | nindent 8 }}
{{- end }}
{{- if .Values.dex.topologySpreadConstraints }}
{{- with .Values.dex.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range $constraint := .Values.dex.topologySpreadConstraints }}
- {{ $constraint | toYaml | nindent 8 | trim }}
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 8 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels:

View file

@ -76,10 +76,10 @@ spec:
affinity:
{{- toYaml .Values.redis.affinity | nindent 8 }}
{{- end }}
{{- if .Values.redis.topologySpreadConstraints }}
{{- with .Values.redis.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range $constraint := .Values.redis.topologySpreadConstraints }}
- {{ $constraint | toYaml | nindent 8 | trim }}
{{- range $constraint := . }}
- {{ toYaml $constraint | nindent 8 | trim }}
{{- if not $constraint.labelSelector }}
labelSelector:
matchLabels: