From 0b69aee72d2de07a772bdfbe84dfa9130ca8a5fb Mon Sep 17 00:00:00 2001 From: Stavros Kontopoulos Date: Fri, 29 Jul 2022 12:40:05 +0300 Subject: [PATCH] fix pdb version --- .../release/artifacts/2-serving-core.yaml | 4 ++-- .../manifest-patches/003-serving-pdb.patch | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/openshift/release/artifacts/2-serving-core.yaml b/openshift/release/artifacts/2-serving-core.yaml index f8acf728b2e9..ac61f6d46181 100644 --- a/openshift/release/artifacts/2-serving-core.yaml +++ b/openshift/release/artifacts/2-serving-core.yaml @@ -4884,7 +4884,7 @@ spec: # Activator PDB. Currently we permit unavailability of 20% of tasks at the same time. # Given the subsetting and that the activators are partially stateful systems, we want # a slow rollout of the new versions and slow migration during node upgrades. -apiVersion: policy/v1 +apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: activator-pdb @@ -5571,7 +5571,7 @@ spec: averageUtilization: 100 --- # Webhook PDB. -apiVersion: policy/v1 +apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: webhook-pdb diff --git a/openshift/release/manifest-patches/003-serving-pdb.patch b/openshift/release/manifest-patches/003-serving-pdb.patch index acbebd513d62..f81bc64426e2 100644 --- a/openshift/release/manifest-patches/003-serving-pdb.patch +++ b/openshift/release/manifest-patches/003-serving-pdb.patch @@ -2,6 +2,24 @@ diff --git a/openshift/release/artifacts/2-serving-core.yaml b/openshift/release index 1616f3311..ecc27ee95 100644 --- a/openshift/release/artifacts/2-serving-core.yaml +++ b/openshift/release/artifacts/2-serving-core.yaml +@@ -4873,7 +4873,7 @@ spec: + # Activator PDB. Currently we permit unavailability of 20% of tasks at the same time. + # Given the subsetting and that the activators are partially stateful systems, we want + # a slow rollout of the new versions and slow migration during node upgrades. +-apiVersion: policy/v1 ++apiVersion: policy/v1beta1 + kind: PodDisruptionBudget + metadata: + name: activator-pdb +@@ -5560,7 +5560,7 @@ spec: + averageUtilization: 100 + --- + # Webhook PDB. +-apiVersion: policy/v1 ++apiVersion: policy/v1beta1 + kind: PodDisruptionBudget + metadata: + name: webhook-pdb @@ -4883,7 +4883,7 @@ metadata: app.kubernetes.io/name: knative-serving app.kubernetes.io/version: "1.5.0"