From 31047643660d229973feb4ffee864df2bf32df56 Mon Sep 17 00:00:00 2001 From: Christof Weickhardt Date: Mon, 26 Aug 2024 16:16:42 +0200 Subject: [PATCH] fix(blutgang): add pdb (#324) * fix(blutgang): add pdb * Update charts/blutgang/templates/poddisruptionbudget.yaml Signed-off-by: Barnabas Busa * bump blutgang version --------- Signed-off-by: Barnabas Busa Co-authored-by: Barnabas Busa Co-authored-by: Barnabas Busa --- charts/blutgang/Chart.yaml | 2 +- charts/blutgang/README.md | 2 +- .../templates/poddisruptionbudget.yaml | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 charts/blutgang/templates/poddisruptionbudget.yaml diff --git a/charts/blutgang/Chart.yaml b/charts/blutgang/Chart.yaml index 5f572d3f..7deda70b 100644 --- a/charts/blutgang/Chart.yaml +++ b/charts/blutgang/Chart.yaml @@ -7,7 +7,7 @@ icon: https://github.com/rainshowerLabs/blutgang/assets/55022497/ec668c7a-5f56-4 sources: - https://github.com/rainshowerLabs/blutgang type: application -version: 0.0.10 +version: 0.0.11 maintainers: - name: barnabasbusa email: busa.barnabas@gmail.com diff --git a/charts/blutgang/README.md b/charts/blutgang/README.md index 2a0fd65f..d66b044c 100644 --- a/charts/blutgang/README.md +++ b/charts/blutgang/README.md @@ -1,7 +1,7 @@ # blutgang -![Version: 0.0.10](https://img.shields.io/badge/Version-0.0.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.0.11](https://img.shields.io/badge/Version-0.0.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) Blutgang is a blazing fast, caching, minimalistic load balancer designed with Ethereum's JSON-RPC in mind. Historical RPC queries are cached in a local database, bypassing the need for slow, repeating calls to your node. diff --git a/charts/blutgang/templates/poddisruptionbudget.yaml b/charts/blutgang/templates/poddisruptionbudget.yaml new file mode 100644 index 00000000..5e08cd04 --- /dev/null +++ b/charts/blutgang/templates/poddisruptionbudget.yaml @@ -0,0 +1,18 @@ +{{- if .Values.podDisruptionBudget }} +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: {{ include "blutgang.fullname" . }} + labels: + {{- include "blutgang.labels" . | nindent 4 }} +spec: +{{- if .Values.podDisruptionBudget.minAvailable }} + minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} +{{- end }} +{{- if .Values.podDisruptionBudget.maxUnavailable }} + maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} +{{- end }} + selector: + matchLabels: + {{- include "blutgang.selectorLabels" . | nindent 6 }} +{{- end }}