Skip to content

Commit

Permalink
Merge pull request #81 from dasmeta/have-pdb-ability
Browse files Browse the repository at this point in the history
Have pdb ability
  • Loading branch information
mrdntgrn authored Oct 2, 2023
2 parents f10fa2d + 05573e9 commit 0c8729e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
11 changes: 11 additions & 0 deletions charts/base/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
5 changes: 5 additions & 0 deletions charts/base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,8 @@ deployment: {}

env: dev
product: application

pdb:
enabled: false
minAvailable: 1
pdbName:

0 comments on commit 0c8729e

Please sign in to comment.