Skip to content

Commit

Permalink
Introduction of poddisruptionbudget for openmetadata server (#197)
Browse files Browse the repository at this point in the history
* Introduction of poddisruptionbudget for openmetadata server

* Updated PR as suggested in previous commit
  • Loading branch information
preetsshah authored Nov 21, 2023
1 parent 9469bac commit 345a01d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
20 changes: 20 additions & 0 deletions charts/openmetadata/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "OpenMetadata.fullname" . }}-poddisruptionbudget
labels:
{{- include "OpenMetadata.labels" . | indent 4 }}
spec:
{{- with .Values.podDisruptionBudget.config }}
{{- if .minAvailable }}
minAvailable: {{ .minAvailable }}
{{- end }}
{{- if .maxUnavailable }}
maxUnavailable: {{ .maxUnavailable }}
{{- end }}
{{- end }}
selector:
matchLabels:
{{- include "OpenMetadata.selectorLabels" . | nindent 6 }}
{{- end }}
17 changes: 17 additions & 0 deletions charts/openmetadata/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,23 @@
"commonLabels": {
"type": "object"
},
"podDisruptionBudget": {
"type": "object",
"additionalProperties": false,
"properties": {
"config": {
"type": "object",
"properties": {
"maxUnavailable": {
"type": "string"
},
"minAvailable": {
"type": "string"
}
}
}
}
},
"podAnnotations": {
"type": "object"
},
Expand Down
8 changes: 7 additions & 1 deletion charts/openmetadata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,11 @@ startupProbe:
path: /healthcheck
port: http-admin

podDisruptionBudget:
enabled: false
config:
maxUnavailable: 1
minAvailable: 1

commonLabels: {}
podAnnotations: {}
podAnnotations: {}

0 comments on commit 345a01d

Please sign in to comment.