Skip to content

Commit

Permalink
feat: Added PDB option. (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp committed Jan 22, 2024
1 parent 40afa5b commit a95ed01
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/component/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.4
version: 0.3.0

# 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
Expand Down
15 changes: 15 additions & 0 deletions charts/component/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit a95ed01

Please sign in to comment.