Add Pod Security Policy back in to GCE PD Cluster Role
This commit is contained in:
parent
7bcdd8b55c
commit
e7af381538
@ -406,6 +406,8 @@ func (g *gcePDCSIDriver) createCSIDriver() {
|
||||
g.nodeServiceAccount = csiServiceAccount(cs, config, "gce-node", false /* teardown */)
|
||||
csiClusterRoleBindings(cs, config, false /* teardown */, g.controllerServiceAccount, g.controllerClusterRoles)
|
||||
csiClusterRoleBindings(cs, config, false /* teardown */, g.nodeServiceAccount, g.nodeClusterRoles)
|
||||
utils.PrivilegedTestPSPClusterRoleBinding(cs, config.Namespace, false, /* teardown */
|
||||
[]string{g.controllerServiceAccount.Name, g.nodeServiceAccount.Name})
|
||||
role := csiControllerRole(cs, config, false)
|
||||
csiControllerRoleBinding(cs, config, false, role, g.controllerServiceAccount)
|
||||
deployGCEPDCSIDriver(cs, config, false /* teardown */, f, g.nodeServiceAccount, g.controllerServiceAccount)
|
||||
@ -419,6 +421,8 @@ func (g *gcePDCSIDriver) cleanupCSIDriver() {
|
||||
deployGCEPDCSIDriver(cs, config, true /* teardown */, f, g.nodeServiceAccount, g.controllerServiceAccount)
|
||||
csiClusterRoleBindings(cs, config, true /* teardown */, g.controllerServiceAccount, g.controllerClusterRoles)
|
||||
csiClusterRoleBindings(cs, config, true /* teardown */, g.nodeServiceAccount, g.nodeClusterRoles)
|
||||
utils.PrivilegedTestPSPClusterRoleBinding(cs, config.Namespace, true, /* teardown */
|
||||
[]string{g.controllerServiceAccount.Name, g.nodeServiceAccount.Name})
|
||||
role := csiControllerRole(cs, config, true)
|
||||
csiControllerRoleBinding(cs, config, true, role, g.controllerServiceAccount)
|
||||
csiServiceAccount(cs, config, "gce-controller", true /* teardown */)
|
||||
|
Loading…
Reference in New Issue
Block a user