Ran the eksupgrade command to upgrade the version to 1.25 eksupgrade eksup-cluster 1.25 us-east-1
Amazon EKS upgrade version
0.6.0
Python runtime version
3.9
Packaging format used
PyPi
Debugging logs
ERROR:eksupgrade.src.preflight_module:Pre flight unsuccessful because of the following errors: ["Some error occurred while checking for the policy security policies 'PolicyV1Api' object has no attribute 'list_pod_security_policy'"]
ERROR:eksupgrade.starter:Pre-flight check for cluster eksup-cluster failed!
Expected Behaviour
eksupgrade
would complete the pre-flight checks and confirm the upgrade path is available to users on 1.24 version of EKS.Current Behaviour
eksupgrade
fails on pre-flight on the pre-flight indicating thePolicyV1Api
doesn't include alist_pod_security_policy
attribute.Code snippet
Possible Solution
Update the logic around invoking
pod_security_policies
only if theupdate_version
is below 1.25.preflight_module.py
Steps to Reproduce
eksctl create cluster -f cluster.yaml
. Config yaml beloweksupgrade eksup-cluster 1.25 us-east-1
Amazon EKS upgrade version
0.6.0
Python runtime version
3.9
Packaging format used
PyPi
Debugging logs