Skip to content

Commit

Permalink
Change Receive PDB to policy/v1 (#284)
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>

Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode authored Aug 30, 2022
1 parent a3f005e commit 826595f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
### Changed

- [#279](https://github.com/thanos-io/kube-thanos/pull/279) Change `hashringConfigmapName` to `hashringConfigMapName` in Receive configuration.
- [#284](https://github.com/thanos-io/kube-thanos/pull/284) Change Receive `PodDisruptionBudget` api version to `policy/v1`

### Added

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MANIFESTS := manifests
CRDSCHEMAS := .crdschemas
TMP := tmp

K8S_VERSION := 1.20.4
K8S_VERSION := 1.21.0
PROM_OPERATOR_VERSION := 0.46.0

PIP := pip3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: policy/v1beta1
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: thanos-receive-default
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: policy/v1beta1
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: thanos-receive-region-1
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/kube-thanos/kube-thanos-receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function(params) {
},

podDisruptionBudget: if tr.config.podDisruptionBudgetMaxUnavailable >= 1 then {
apiVersion: 'policy/v1beta1',
apiVersion: 'policy/v1',
kind: 'PodDisruptionBudget',
metadata: {
name: tr.config.name,
Expand Down

0 comments on commit 826595f

Please sign in to comment.