2021-12-01 15:43:42 +00:00
|
|
|
{{- if and .Values.enableSqsTerminationDraining (and .Values.podDisruptionBudget (gt (int .Values.replicas) 1)) }}
|
2022-01-28 16:22:12 +00:00
|
|
|
apiVersion: {{ include "aws-node-termination-handler.pdb.apiVersion" . }}
|
2021-12-01 15:43:42 +00:00
|
|
|
kind: PodDisruptionBudget
|
|
|
|
metadata:
|
|
|
|
name: {{ include "aws-node-termination-handler.fullname" . }}
|
2022-04-08 15:10:17 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2021-12-01 15:43:42 +00:00
|
|
|
labels:
|
|
|
|
{{- include "aws-node-termination-handler.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2022-01-28 16:22:12 +00:00
|
|
|
{{- include "aws-node-termination-handler.selectorLabelsDeployment" . | nindent 6 }}
|
2021-12-01 15:43:42 +00:00
|
|
|
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
|
|
|
|
{{- end }}
|