diff --git a/charts/base/Chart.yaml b/charts/base/Chart.yaml index 3d1d94d..283ad2d 100644 --- a/charts/base/Chart.yaml +++ b/charts/base/Chart.yaml @@ -15,10 +15,10 @@ 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.1.49 +version: 0.1.50 # 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 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.1.49" +appVersion: "0.1.50" diff --git a/charts/base/templates/pdb.yaml b/charts/base/templates/pdb.yaml new file mode 100644 index 0000000..b1a4ae0 --- /dev/null +++ b/charts/base/templates/pdb.yaml @@ -0,0 +1,11 @@ +{{- if .Values.pdb.enabled -}} +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: {{ .Values.pdb.pdbName | default (include "base.fullname" .) }} +spec: + minAvailable: {{ .Values.pdb.minAvailable }} + selector: + matchLabels: + {{- include "base.selectorLabels" . | nindent 6 }} +{{- end }} diff --git a/charts/base/values.yaml b/charts/base/values.yaml index 3c1ec7f..c009ce0 100644 --- a/charts/base/values.yaml +++ b/charts/base/values.yaml @@ -148,3 +148,8 @@ deployment: {} env: dev product: application + +pdb: + enabled: false + minAvailable: 1 + pdbName: