Skip to content

Commit

Permalink
fix(kubernetes): replace deprecated V1Subjects
Browse files Browse the repository at this point in the history
to prevent issues with RoleBinding creation.
  • Loading branch information
Solvik authored and Lujeni committed Aug 23, 2024
1 parent 7ddeceb commit 5d99ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab2rbac.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def create_role_binding(
namespace=namespace, name=name, labels=labels
),
subjects=[
kubernetes.client.V1Subject(
kubernetes.client.RbacV1Subject(
name=user,
kind="User",
api_group="rbac.authorization.k8s.io",
Expand Down

0 comments on commit 5d99ebc

Please sign in to comment.