Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction of poddisruptionbudget for openmetadata server #197

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: {}
Loading