Skip to content

Commit

Permalink
change V1Subject to RbacV1Subject in k8s.py
Browse files Browse the repository at this point in the history
This change fix: Error: module 'kubernetes.client' has no attribute 'V1Subject'
  • Loading branch information
merqri authored Jun 3, 2024
1 parent d01e84a commit 8ec1c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise_gateway/services/processproxies/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _create_role_binding(self, namespace: str, service_account_name: str) -> Non
binding_role_ref = client.V1RoleRef(
api_group="", kind="ClusterRole", name=kernel_cluster_role
)
binding_subjects = client.V1Subject(
binding_subjects = client.RbacV1Subject(
api_group="", kind="ServiceAccount", name=service_account_name, namespace=namespace
)

Expand Down

0 comments on commit 8ec1c68

Please sign in to comment.