Skip to content

Commit 8ec1c68

Browse files
authored
change V1Subject to RbacV1Subject in k8s.py
This change fix: Error: module 'kubernetes.client' has no attribute 'V1Subject'
1 parent d01e84a commit 8ec1c68

File tree

1 file changed

+1
-1
lines changed
  • enterprise_gateway/services/processproxies

1 file changed

+1
-1
lines changed

enterprise_gateway/services/processproxies/k8s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def _create_role_binding(self, namespace: str, service_account_name: str) -> Non
349349
binding_role_ref = client.V1RoleRef(
350350
api_group="", kind="ClusterRole", name=kernel_cluster_role
351351
)
352-
binding_subjects = client.V1Subject(
352+
binding_subjects = client.RbacV1Subject(
353353
api_group="", kind="ServiceAccount", name=service_account_name, namespace=namespace
354354
)
355355

0 commit comments

Comments
 (0)