mirror of https://github.com/k3s-io/k3s
Merge pull request #69704 from yue9944882/chore/sync-psp-api
Sync PSP v1beta1 api definitions with internalspull/58/head
commit
521028ed52
|
@ -253,6 +253,10 @@ type AllowedHostPath struct {
|
||||||
// FSType gives strong typing to different file systems that are used by volumes.
|
// FSType gives strong typing to different file systems that are used by volumes.
|
||||||
type FSType string
|
type FSType string
|
||||||
|
|
||||||
|
// AllowAllCapabilities can be used as a value for the PodSecurityPolicy.AllowAllCapabilities
|
||||||
|
// field and means that any capabilities are allowed to be requested.
|
||||||
|
var AllowAllCapabilities v1.Capability = "*"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
AzureFile FSType = "azureFile"
|
AzureFile FSType = "azureFile"
|
||||||
Flocker FSType = "flocker"
|
Flocker FSType = "flocker"
|
||||||
|
@ -273,8 +277,15 @@ var (
|
||||||
DownwardAPI FSType = "downwardAPI"
|
DownwardAPI FSType = "downwardAPI"
|
||||||
FC FSType = "fc"
|
FC FSType = "fc"
|
||||||
ConfigMap FSType = "configMap"
|
ConfigMap FSType = "configMap"
|
||||||
|
VsphereVolume FSType = "vsphereVolume"
|
||||||
Quobyte FSType = "quobyte"
|
Quobyte FSType = "quobyte"
|
||||||
AzureDisk FSType = "azureDisk"
|
AzureDisk FSType = "azureDisk"
|
||||||
|
PhotonPersistentDisk FSType = "photonPersistentDisk"
|
||||||
|
StorageOS FSType = "storageos"
|
||||||
|
Projected FSType = "projected"
|
||||||
|
PortworxVolume FSType = "portworxVolume"
|
||||||
|
ScaleIO FSType = "scaleIO"
|
||||||
|
CSI FSType = "csi"
|
||||||
All FSType = "*"
|
All FSType = "*"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -385,6 +396,9 @@ type FSGroupStrategyOptions struct {
|
||||||
type FSGroupStrategyType string
|
type FSGroupStrategyType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// FSGroupStrategyMayRunAs means that container does not need to have FSGroup of X applied.
|
||||||
|
// However, when FSGroups are specified, they have to fall in the defined range.
|
||||||
|
FSGroupStrategyMayRunAs FSGroupStrategyType = "MayRunAs"
|
||||||
// FSGroupStrategyMustRunAs meant that container must have FSGroup of X applied.
|
// FSGroupStrategyMustRunAs meant that container must have FSGroup of X applied.
|
||||||
FSGroupStrategyMustRunAs FSGroupStrategyType = "MustRunAs"
|
FSGroupStrategyMustRunAs FSGroupStrategyType = "MustRunAs"
|
||||||
// FSGroupStrategyRunAsAny means that container may make requests for any FSGroup labels.
|
// FSGroupStrategyRunAsAny means that container may make requests for any FSGroup labels.
|
||||||
|
@ -407,6 +421,9 @@ type SupplementalGroupsStrategyOptions struct {
|
||||||
type SupplementalGroupsStrategyType string
|
type SupplementalGroupsStrategyType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// SupplementalGroupsStrategyMayRunAs means that container does not need to run with a particular gid.
|
||||||
|
// However, when gids are specified, they have to fall in the defined range.
|
||||||
|
SupplementalGroupsStrategyMayRunAs SupplementalGroupsStrategyType = "MayRunAs"
|
||||||
// SupplementalGroupsStrategyMustRunAs means that container must run as a particular gid.
|
// SupplementalGroupsStrategyMustRunAs means that container must run as a particular gid.
|
||||||
SupplementalGroupsStrategyMustRunAs SupplementalGroupsStrategyType = "MustRunAs"
|
SupplementalGroupsStrategyMustRunAs SupplementalGroupsStrategyType = "MustRunAs"
|
||||||
// SupplementalGroupsStrategyRunAsAny means that container may make requests for any gid.
|
// SupplementalGroupsStrategyRunAsAny means that container may make requests for any gid.
|
||||||
|
|
Loading…
Reference in New Issue