Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 1 | {{- if .Values.podDisruptionBudget }} |
| 2 | apiVersion: {{ include "prometheus-pushgateway.pdb.apiVersion" . }} |
Mohammed Naser | 9ad0d46 | 2023-01-15 20:36:37 -0500 | [diff] [blame] | 3 | kind: PodDisruptionBudget |
| 4 | metadata: |
Mohammed Naser | 9ad0d46 | 2023-01-15 20:36:37 -0500 | [diff] [blame] | 5 | labels: |
Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 6 | {{- include "prometheus-pushgateway.defaultLabels" . | nindent 4 }} |
| 7 | name: {{ include "prometheus-pushgateway.fullname" . }} |
| 8 | namespace: {{ template "prometheus-pushgateway.namespace" . }} |
Mohammed Naser | 9ad0d46 | 2023-01-15 20:36:37 -0500 | [diff] [blame] | 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 12 | {{- include "prometheus-pushgateway.selectorLabels" . | nindent 6 }} |
| 13 | {{- toYaml .Values.podDisruptionBudget | nindent 2 }} |
| 14 | {{- end }} |