mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
api changes for psp runasgroup policy
This commit is contained in:
@@ -40,6 +40,13 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
|
||||
}
|
||||
psp.RunAsUser.Rule = runAsUserRules[c.Rand.Intn(len(runAsUserRules))]
|
||||
|
||||
runAsGroupRules := []policy.RunAsGroupStrategy{
|
||||
policy.RunAsGroupStrategyMustRunAs,
|
||||
policy.RunAsGroupStrategyRunAsAny,
|
||||
policy.RunAsGroupStrategyMayRunAs,
|
||||
}
|
||||
psp.RunAsGroup = &policy.RunAsGroupStrategyOptions{}
|
||||
psp.RunAsGroup.Rule = runAsGroupRules[c.Rand.Intn(len(runAsGroupRules))]
|
||||
seLinuxRules := []policy.SELinuxStrategy{
|
||||
policy.SELinuxStrategyMustRunAs,
|
||||
policy.SELinuxStrategyRunAsAny,
|
||||
|
||||
Reference in New Issue
Block a user