[stable/prometheus-blackbox-exporter] Fix PodDisruptionBudget configuration (#19707)

* Fix PodDisruptionBudget configuration

Signed-off-by: Maxim Valiarovski <maxim.valiarovski@target.com>

* simplify -podDisruptionBudget configuration management

Signed-off-by: Maxim Valiarovski <maxim.valiarovski@target.com>

* Update readme

Signed-off-by: Maxim Valiarovski <maxim.valiarovski@target.com>
This commit is contained in:
Max V
2020-01-08 09:43:40 -08:00
committed by Kubernetes Prow Robot
parent 876881356e
commit 99b76a2f56
4 changed files with 15 additions and 6 deletions
@@ -1,7 +1,7 @@
apiVersion: v1
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 1.6.0
version: 2.0.0
appVersion: 0.15.1
home: https://github.com/prometheus/blackbox_exporter
sources:
+11 -1
View File
@@ -63,7 +63,7 @@ The following table lists the configurable parameters of the Blackbox-Exporter c
| `tolerations` | node tolerations for pod assignment | `[]` |
| `affinity` | node affinity for pod assignment | `{}` |
| `podAnnotations` | annotations to add to each pod | `{}` |
| `podDisruptionBudget` | pod disruption budget | `{maxUnavailable: 0}` |
| `podDisruptionBudget` | pod disruption budget | `{}` |
| `priorityClassName` | priority class name | None |
| `resources` | pod resource requests & limits | `{}` |
| `restartPolicy` | container restart policy | `Always` |
@@ -99,6 +99,16 @@ $ helm install --name my-release -f values.yaml stable/prometheus-blackbox-expor
## Upgrading an existing Release to a new major version
### 2.0.0
This version removes the `podDisruptionBudget.enabled` parameter and changes the default value of `podDisruptionBudget` to `{}`, in order to fix Helm 3 compatibility.
In order to upgrade, please remove `podDisruptionBudget.enabled` from your custom values.yaml file and set the content of `podDisruptionBudget`, for example:
```yaml
podDisruptionBudget:
maxUnavailable: 0
```
### 1.0.0
This version introduce the new recommended labels.
@@ -1,4 +1,4 @@
{{- if .Values.podDisruptionBudget.enabled -}}
{{- if .Values.podDisruptionBudget -}}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
@@ -1,8 +1,7 @@
restartPolicy: Always
podDisruptionBudget:
enabled: true
maxUnavailable: 0
podDisruptionBudget: {}
# maxUnavailable: 0
strategy:
rollingUpdate: