Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 1 | {{- if .Values.podDisruptionBudget.enabled }} |
| 2 | apiVersion: {{ template "policy.poddisruptionbudget.apiVersion" . }} |
| 3 | kind: PodDisruptionBudget |
| 4 | metadata: |
| 5 | name: {{ template "vector.fullname" . }} |
| 6 | labels: |
| 7 | {{- include "vector.labels" . | nindent 4 }} |
| 8 | spec: |
| 9 | {{- with .Values.podDisruptionBudget.minAvailable }} |
| 10 | minAvailable: {{ . }} |
| 11 | {{- end }} |
| 12 | {{- with .Values.podDisruptionBudget.maxUnavailable }} |
| 13 | maxUnavailable: {{ . }} |
| 14 | {{- end }} |
| 15 | selector: |
| 16 | matchLabels: |
| 17 | {{- include "vector.selectorLabels" . | nindent 6 }} |
| 18 | {{- end }} |