From 4f704f6f03a1b1d4d3bd62d5daafcb1012f7a7c7 Mon Sep 17 00:00:00 2001 From: Starlight Romero <28881133+starlightromero@users.noreply.github.com> Date: Wed, 4 Oct 2023 07:48:10 -0700 Subject: [PATCH] fix(k8s): ensure PodSecurityPolicies are not checked for version >= 1.25 (#48) --- eksup/src/k8s/resources.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eksup/src/k8s/resources.rs b/eksup/src/k8s/resources.rs index 15b1ca2..1561e0a 100644 --- a/eksup/src/k8s/resources.rs +++ b/eksup/src/k8s/resources.rs @@ -366,7 +366,7 @@ pub(crate) async fn get_podsecuritypolicies( current_version: &str, ) -> Result> { let current_version = version::parse_minor(current_version)?; - if current_version <= 25 { + if current_version >= 25 { // Pod Security Policy support is removed starting in 1.25 return Ok(vec![]); }