Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Python kubernetes package version 29.0.0 #4

Open
gfenoy opened this issue Jan 17, 2024 · 2 comments
Open

Problem with Python kubernetes package version 29.0.0 #4

gfenoy opened this issue Jan 17, 2024 · 2 comments
Assignees

Comments

@gfenoy
Copy link
Collaborator

gfenoy commented Jan 17, 2024

When using pycalrissian in an environment with the 29.0.0 version of the kubernetes package, i face the following error message:


TRACE: module 'kubernetes.client.models' has no attribute 'V1Subject'\n<class 'AttributeError'>
  File \"/opt/zooservices_user/eric/water-bodies/service.py\", line 341, in water_bodies\\n    exit_status = runner.execute()
  File \"/usr/miniconda3/envs/env_zoo_calrissian/lib/python3.10/site-packages/zoo_calrissian_runner/__init__.py\", line 375, in execute
    session.initialise()
  File \"/usr/miniconda3/envs/env_zoo_calrissian/lib/python3.10/site-packages/pycalrissian/context.py\", line 100, in initialise
    self.create_role_binding(name=value[\"role_binding\"], role=key)
  File \"/usr/miniconda3/envs/env_zoo_calrissian/lib/python3.10/site-packages/pycalrissian/context.py\", line 379, in create_role_binding
    subject = client.models.V1Subject(

The message no longer appears when moving this package back to version 28.1.0.

The change causing the issue when passing from version 28.1.0 to 29.0.0 is that V1Subject was renamed RbacV1Subject.

By now,

@fabricebrito
Copy link
Member

@floeschau can you fix this?

@floeschau
Copy link
Collaborator

@fabricebrito, @gfenoy, I'm trying to fix it.

gfenoy added a commit to EOEPCA/eoepca-proc-service-template that referenced this issue Jan 19, 2024
Fix the kubernetes package version to 28.1.0 (cf. Terradue/pycalrissian#4)
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

No branches or pull requests

3 participants