Commit baaaf266 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #40130 from xilabao/change-to-v1beta1-in-create-rolebinding

Automatic merge from submit-queue change APIVersion to v1beta1 in create rolebinding/clusterrolebinding
parents 6873d2a5 d969edeb
......@@ -119,14 +119,14 @@ func (s ClusterRoleBindingGeneratorV1) StructuredGenerate() (runtime.Object, err
for _, user := range s.Users {
clusterRoleBinding.Subjects = append(clusterRoleBinding.Subjects, rbac.Subject{
Kind: rbac.UserKind,
APIVersion: "rbac/v1alpha1",
APIVersion: "rbac.authorization.k8s.io/v1beta1",
Name: user,
})
}
for _, group := range s.Groups {
clusterRoleBinding.Subjects = append(clusterRoleBinding.Subjects, rbac.Subject{
Kind: rbac.GroupKind,
APIVersion: "rbac/v1alpha1",
APIVersion: "rbac.authorization.k8s.io/v1beta1",
Name: group,
})
}
......
......@@ -134,14 +134,14 @@ func (s RoleBindingGeneratorV1) StructuredGenerate() (runtime.Object, error) {
for _, user := range s.Users {
roleBinding.Subjects = append(roleBinding.Subjects, rbac.Subject{
Kind: rbac.UserKind,
APIVersion: "rbac/v1alpha1",
APIVersion: "rbac.authorization.k8s.io/v1beta1",
Name: user,
})
}
for _, group := range s.Groups {
roleBinding.Subjects = append(roleBinding.Subjects, rbac.Subject{
Kind: rbac.GroupKind,
APIVersion: "rbac/v1alpha1",
APIVersion: "rbac.authorization.k8s.io/v1beta1",
Name: group,
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment