Skip to content

Fix for kubernetes client renaming V1Subject to RbacV1Subject#84

Open
stefan2200 wants to merge 1 commit intocyberark:masterfrom
stefan2200:compatibility-fix-kubernetes-client
Open

Fix for kubernetes client renaming V1Subject to RbacV1Subject#84
stefan2200 wants to merge 1 commit intocyberark:masterfrom
stefan2200:compatibility-fix-kubernetes-client

Conversation

@stefan2200
Copy link

Desired Outcome

V1Subject is only available as RbacV1Subject since library version 29

Implemented Changes

Try importing V1Subject if it fails import RbacV1Subject as V1Subject

Connected Issue/Story

None that I'm currently aware of. Just did a clean git pull and encountered this issue with the latest Python version and the most recently installed kubernetes package.

Definition of Done

pip3 install --upgrade kubernetes and observe that it fails to import V1Subject from the kubernetes.client library. Fixing the import solves the issue and KubiScan works fine again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant