Skip to content

Commit

Permalink
fix(k8s): ensure PodSecurityPolicies are not checked for version >= 1…
Browse files Browse the repository at this point in the history
….25 (#48)
  • Loading branch information
starlightromero authored Oct 4, 2023
1 parent 6a501fa commit 4f704f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eksup/src/k8s/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ pub(crate) async fn get_podsecuritypolicies(
current_version: &str,
) -> Result<Vec<checks::PodSecurityPolicy>> {
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![]);
}
Expand Down

0 comments on commit 4f704f6

Please sign in to comment.