diff --git a/enterprise_gateway/services/processproxies/k8s.py b/enterprise_gateway/services/processproxies/k8s.py index 00e6bf17..e5c8efe5 100644 --- a/enterprise_gateway/services/processproxies/k8s.py +++ b/enterprise_gateway/services/processproxies/k8s.py @@ -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 )