From 968e0ab457013dca24a1e3ce17500d4135a2b3b5 Mon Sep 17 00:00:00 2001 From: Stavros Kontopoulos Date: Fri, 29 Jul 2022 12:40:05 +0300 Subject: [PATCH] fix pdb version for 1.4 --- .../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 ecc27ee95af1..12cac6d40adc 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 diff --git a/openshift/release/manifest-patches/003-serving-pdb.patch b/openshift/release/manifest-patches/003-serving-pdb.patch index 6185def6d76f..6090f63b6833 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.4.0"