mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #102301 from liggitt/psp-sa-group-e2e
Grant PSP permissions to all serviceaccounts in e2e, not just default
This commit is contained in:
commit
efd7df5c99
@ -177,7 +177,13 @@ func CreatePrivilegedPSPBinding(kubeClient clientset.Interface, namespace string
|
|||||||
Kind: rbacv1.ServiceAccountKind,
|
Kind: rbacv1.ServiceAccountKind,
|
||||||
Namespace: namespace,
|
Namespace: namespace,
|
||||||
Name: "default",
|
Name: "default",
|
||||||
})
|
},
|
||||||
|
rbacv1.Subject{
|
||||||
|
Kind: rbacv1.GroupKind,
|
||||||
|
APIGroup: rbacv1.GroupName,
|
||||||
|
Name: "system:serviceaccounts:" + namespace,
|
||||||
|
},
|
||||||
|
)
|
||||||
ExpectNoError(err)
|
ExpectNoError(err)
|
||||||
ExpectNoError(e2eauth.WaitForNamedAuthorizationUpdate(kubeClient.AuthorizationV1(),
|
ExpectNoError(e2eauth.WaitForNamedAuthorizationUpdate(kubeClient.AuthorizationV1(),
|
||||||
serviceaccount.MakeUsername(namespace, "default"), namespace, "use", podSecurityPolicyPrivileged,
|
serviceaccount.MakeUsername(namespace, "default"), namespace, "use", podSecurityPolicyPrivileged,
|
||||||
|
Loading…
Reference in New Issue
Block a user