Skip to content

Commit

Permalink
fix: Updated checking psp only for versions below 1.25 (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: Manu Chandrasekhar <manuchn@amazon.com>
Co-authored-by: Mark Beacom <7315957+mbeacom@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 23, 2023
1 parent a7241dc commit d41305f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eksupgrade/src/preflight_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def get_cluster_version(
return
cmk_key_check(errors, cluster_name, region, cluster_details, report, customer_report)
security_group_check(errors, cluster_name, region, cluster_details, report, customer_report)
pod_security_policies(errors, cluster_name, region, report, customer_report)
if float(cluster_details["cluster"]["version"]) < 1.25:
pod_security_policies(errors, cluster_name, region, report, customer_report)
node_group_details = nodegroup_customami(errors, cluster_name, region, report, customer_report, update_version)
report["nodegroup_details"] = node_group_details
customer_report["nodegroup_details"] = node_group_details
Expand Down

0 comments on commit d41305f

Please sign in to comment.