diff --git a/charts/component/Chart.yaml b/charts/component/Chart.yaml index 6a3c253..7b8e8a4 100644 --- a/charts/component/Chart.yaml +++ b/charts/component/Chart.yaml @@ -15,7 +15,8 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.5 + +version: 0.3.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/component/templates/pdb.yaml b/charts/component/templates/pdb.yaml new file mode 100644 index 0000000..32017f4 --- /dev/null +++ b/charts/component/templates/pdb.yaml @@ -0,0 +1,15 @@ +{{- if and .Values.pdb .Values.pdb.enabled }} +--- +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: {{ include "component.fullname" . }} + labels: + {{- include "component.labels" . | nindent 4 }} +spec: + selector: + matchLabels: + app.kubernetes.io/name: {{ include "component.fullname" . }} + minAvailable: {{ .Values.pdb.minAvailable }} +{{- end }} +