mirror of
https://github.com/fluxcd/flagger.git
synced 2026-03-02 17:51:00 +00:00
16 lines
446 B
YAML
16 lines
446 B
YAML
{{- if .Values.podDisruptionBudget.enabled }}
|
|
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" -}}
|
|
apiVersion: policy/v1
|
|
{{- else }}
|
|
apiVersion: policy/v1beta1
|
|
{{- end }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "loadtester.fullname" . }}
|
|
spec:
|
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: {{ include "loadtester.name" . }}
|
|
{{- end }}
|