2023-04-10 13:14:24 +00:00
|
|
|
{{/*
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/}}
|
|
|
|
|
2022-10-18 08:13:05 +00:00
|
|
|
{{- if .Values.injector.podDisruptionBudget }}
|
2023-04-10 13:14:24 +00:00
|
|
|
apiVersion: policy/v1
|
2022-10-18 08:13:05 +00:00
|
|
|
kind: PodDisruptionBudget
|
|
|
|
metadata:
|
|
|
|
name: {{ template "vault.fullname" . }}-agent-injector
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
helm.sh/chart: {{ include "vault.chart" . }}
|
|
|
|
app.kubernetes.io/name: {{ include "vault.name" . }}-agent-injector
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
component: webhook
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: {{ template "vault.name" . }}-agent-injector
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
component: webhook
|
|
|
|
{{- toYaml .Values.injector.podDisruptionBudget | nindent 2 }}
|
|
|
|
{{- end -}}
|