Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit 3be641f

Browse files
authored
feat(helm): add pdb in helm chart (#616)
1 parent 03f5c65 commit 3be641f

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

charts/kubernetes-external-secrets/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ The following table lists the configurable parameters of the `kubernetes-externa
113113
| `resources` | Pod resource requests & limits | `{}` |
114114
| `dnsConfig` | Dns Config for pod. | `{}` |
115115
| `imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` |
116+
| `podDisruptionBudget` | PodDisruptionBudget for pod. | `{}` |
116117
| `serviceMonitor.enabled` | Enable the creation of a serviceMonitor object for the Prometheus operator | `false` |
117118
| `serviceMonitor.interval` | The interval the Prometheus endpoint is scraped | `30s` |
118119
| `serviceMonitor.namespace` | The namespace where the serviceMonitor object has to be created | `nil` |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- if .Values.podDisruptionBudget -}}
2+
apiVersion: policy/v1beta1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ template "kubernetes-external-secrets.fullname" . }}
6+
namespace: {{ .Release.Namespace | quote }}
7+
labels:
8+
app.kubernetes.io/name: {{ template "kubernetes-external-secrets.name" . }}
9+
helm.sh/chart: {{ include "kubernetes-external-secrets.chart" . }}
10+
app.kubernetes.io/instance: "{{ .Release.Name }}"
11+
app.kubernetes.io/managed-by: "{{ .Release.Service }}"
12+
spec:
13+
selector:
14+
matchLabels:
15+
app.kubernetes.io/name: {{ include "kubernetes-external-secrets.name" . }}
16+
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
17+
{{- end -}}

charts/kubernetes-external-secrets/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ tolerations: []
119119

120120
affinity: {}
121121

122+
podDisruptionBudget: {}
123+
122124
serviceMonitor:
123125
enabled: false
124126
interval: "30s"

0 commit comments

Comments
 (0)