
- As part of VAULT-571 / #703 in 7109159
, a new vault.serverEnabled
template was added (and included in vault.mode)
Various templates were updated accordingly, but those that were
already calling vault.mode had an additonal call to
vault.serverEnabled made which was unnecessary
Remove those
26 lines
993 B
YAML
26 lines
993 B
YAML
{{ template "vault.mode" . }}
|
|
{{- if ne .mode "external" -}}
|
|
{{- if .serverEnabled -}}
|
|
{{- if and (eq .mode "ha") (eq (.Values.server.ha.disruptionBudget.enabled | toString) "true") -}}
|
|
# PodDisruptionBudget to prevent degrading the server cluster through
|
|
# voluntary cluster changes.
|
|
apiVersion: {{ ge .Capabilities.KubeVersion.Minor "21" | ternary "policy/v1" "policy/v1beta1" }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "vault.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
helm.sh/chart: {{ include "vault.chart" . }}
|
|
app.kubernetes.io/name: {{ include "vault.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
spec:
|
|
maxUnavailable: {{ template "vault.pdb.maxUnavailable" . }}
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: {{ include "vault.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
component: server
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|