@Generated(value="org.jsonschema2pojo") public class SecurityContextConstraints extends Object implements HasMetadata
Constructor and Description |
---|
SecurityContextConstraints()
No args constructor for use in serialization
|
SecurityContextConstraints(Boolean allowHostDirVolumePlugin,
Boolean allowHostIPC,
Boolean allowHostNetwork,
Boolean allowHostPID,
Boolean allowHostPorts,
Boolean allowPrivilegedContainer,
List<String> allowedCapabilities,
String apiVersion,
List<String> defaultAddCapabilities,
FSGroupStrategyOptions fsGroup,
List<String> groups,
String kind,
ObjectMeta metadata,
Integer priority,
Boolean readOnlyRootFilesystem,
List<String> requiredDropCapabilities,
RunAsUserStrategyOptions runAsUser,
SELinuxContextStrategyOptions seLinuxContext,
List<String> seccompProfiles,
SupplementalGroupsStrategyOptions supplementalGroups,
List<String> users,
List<String> volumes) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
List<String> |
getAllowedCapabilities()
capabilities that are allowed to be added
|
Boolean |
getAllowHostDirVolumePlugin()
allow the use of the host dir volume plugin
|
Boolean |
getAllowHostIPC()
allow the use of the host ipc in the containers
|
Boolean |
getAllowHostNetwork()
allow the use of the hostNetwork in the pod spec
|
Boolean |
getAllowHostPID()
allow the use of the host pid in the containers
|
Boolean |
getAllowHostPorts()
allow the use of the host ports in the containers
|
Boolean |
getAllowPrivilegedContainer()
allow containers to run as privileged
|
String |
getApiVersion()
(Required)
|
List<String> |
getDefaultAddCapabilities()
capabilities that are added by default but may be dropped
|
FSGroupStrategyOptions |
getFsGroup() |
List<String> |
getGroups()
groups allowed to use this SecurityContextConstraints
|
String |
getKind()
(Required)
|
ObjectMeta |
getMetadata() |
Integer |
getPriority()
determines which SCC is used when multiple SCCs allow a particular pod; higher priority SCCs are preferred
|
Boolean |
getReadOnlyRootFilesystem()
require containers to run with a read only root filesystem
|
List<String> |
getRequiredDropCapabilities()
capabilities that will be dropped by default and may not be added
|
RunAsUserStrategyOptions |
getRunAsUser() |
List<String> |
getSeccompProfiles()
seccomp profiles allowed to be used by pods and containers
|
SELinuxContextStrategyOptions |
getSeLinuxContext() |
SupplementalGroupsStrategyOptions |
getSupplementalGroups() |
List<String> |
getUsers()
users allowed to use this SecurityContextConstraints
|
List<String> |
getVolumes() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setAllowedCapabilities(List<String> allowedCapabilities)
capabilities that are allowed to be added
|
void |
setAllowHostDirVolumePlugin(Boolean allowHostDirVolumePlugin)
allow the use of the host dir volume plugin
|
void |
setAllowHostIPC(Boolean allowHostIPC)
allow the use of the host ipc in the containers
|
void |
setAllowHostNetwork(Boolean allowHostNetwork)
allow the use of the hostNetwork in the pod spec
|
void |
setAllowHostPID(Boolean allowHostPID)
allow the use of the host pid in the containers
|
void |
setAllowHostPorts(Boolean allowHostPorts)
allow the use of the host ports in the containers
|
void |
setAllowPrivilegedContainer(Boolean allowPrivilegedContainer)
allow containers to run as privileged
|
void |
setApiVersion(String apiVersion)
(Required)
|
void |
setDefaultAddCapabilities(List<String> defaultAddCapabilities)
capabilities that are added by default but may be dropped
|
void |
setFsGroup(FSGroupStrategyOptions fsGroup) |
void |
setGroups(List<String> groups)
groups allowed to use this SecurityContextConstraints
|
void |
setKind(String kind)
(Required)
|
void |
setMetadata(ObjectMeta metadata) |
void |
setPriority(Integer priority)
determines which SCC is used when multiple SCCs allow a particular pod; higher priority SCCs are preferred
|
void |
setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem)
require containers to run with a read only root filesystem
|
void |
setRequiredDropCapabilities(List<String> requiredDropCapabilities)
capabilities that will be dropped by default and may not be added
|
void |
setRunAsUser(RunAsUserStrategyOptions runAsUser) |
void |
setSeccompProfiles(List<String> seccompProfiles)
seccomp profiles allowed to be used by pods and containers
|
void |
setSeLinuxContext(SELinuxContextStrategyOptions seLinuxContext) |
void |
setSupplementalGroups(SupplementalGroupsStrategyOptions supplementalGroups) |
void |
setUsers(List<String> users)
users allowed to use this SecurityContextConstraints
|
void |
setVolumes(List<String> volumes) |
public SecurityContextConstraints()
public SecurityContextConstraints(Boolean allowHostDirVolumePlugin, Boolean allowHostIPC, Boolean allowHostNetwork, Boolean allowHostPID, Boolean allowHostPorts, Boolean allowPrivilegedContainer, List<String> allowedCapabilities, String apiVersion, List<String> defaultAddCapabilities, FSGroupStrategyOptions fsGroup, List<String> groups, String kind, ObjectMeta metadata, Integer priority, Boolean readOnlyRootFilesystem, List<String> requiredDropCapabilities, RunAsUserStrategyOptions runAsUser, SELinuxContextStrategyOptions seLinuxContext, List<String> seccompProfiles, SupplementalGroupsStrategyOptions supplementalGroups, List<String> users, List<String> volumes)
defaultAddCapabilities
- metadata
- seLinuxContext
- fsGroup
- kind
- seccompProfiles
- allowHostNetwork
- volumes
- allowHostPID
- groups
- requiredDropCapabilities
- allowHostDirVolumePlugin
- allowHostPorts
- priority
- users
- allowedCapabilities
- readOnlyRootFilesystem
- runAsUser
- apiVersion
- allowPrivilegedContainer
- allowHostIPC
- supplementalGroups
- public Boolean getAllowHostDirVolumePlugin()
public void setAllowHostDirVolumePlugin(Boolean allowHostDirVolumePlugin)
allowHostDirVolumePlugin
- The allowHostDirVolumePluginpublic Boolean getAllowHostIPC()
public void setAllowHostIPC(Boolean allowHostIPC)
allowHostIPC
- The allowHostIPCpublic Boolean getAllowHostNetwork()
public void setAllowHostNetwork(Boolean allowHostNetwork)
allowHostNetwork
- The allowHostNetworkpublic Boolean getAllowHostPID()
public void setAllowHostPID(Boolean allowHostPID)
allowHostPID
- The allowHostPIDpublic Boolean getAllowHostPorts()
public void setAllowHostPorts(Boolean allowHostPorts)
allowHostPorts
- The allowHostPortspublic Boolean getAllowPrivilegedContainer()
public void setAllowPrivilegedContainer(Boolean allowPrivilegedContainer)
allowPrivilegedContainer
- The allowPrivilegedContainerpublic List<String> getAllowedCapabilities()
public void setAllowedCapabilities(List<String> allowedCapabilities)
allowedCapabilities
- The allowedCapabilitiespublic String getApiVersion()
getApiVersion
in interface HasMetadata
public void setApiVersion(String apiVersion)
apiVersion
- The apiVersionpublic List<String> getDefaultAddCapabilities()
public void setDefaultAddCapabilities(List<String> defaultAddCapabilities)
defaultAddCapabilities
- The defaultAddCapabilitiespublic FSGroupStrategyOptions getFsGroup()
public void setFsGroup(FSGroupStrategyOptions fsGroup)
fsGroup
- The fsGrouppublic List<String> getGroups()
public void setGroups(List<String> groups)
groups
- The groupspublic String getKind()
getKind
in interface HasMetadata
public void setKind(String kind)
kind
- The kindpublic ObjectMeta getMetadata()
getMetadata
in interface HasMetadata
public void setMetadata(ObjectMeta metadata)
setMetadata
in interface HasMetadata
metadata
- The metadatapublic Integer getPriority()
public void setPriority(Integer priority)
priority
- The prioritypublic Boolean getReadOnlyRootFilesystem()
public void setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem)
readOnlyRootFilesystem
- The readOnlyRootFilesystempublic List<String> getRequiredDropCapabilities()
public void setRequiredDropCapabilities(List<String> requiredDropCapabilities)
requiredDropCapabilities
- The requiredDropCapabilitiespublic RunAsUserStrategyOptions getRunAsUser()
public void setRunAsUser(RunAsUserStrategyOptions runAsUser)
runAsUser
- The runAsUserpublic SELinuxContextStrategyOptions getSeLinuxContext()
public void setSeLinuxContext(SELinuxContextStrategyOptions seLinuxContext)
seLinuxContext
- The seLinuxContextpublic List<String> getSeccompProfiles()
public void setSeccompProfiles(List<String> seccompProfiles)
seccompProfiles
- The seccompProfilespublic SupplementalGroupsStrategyOptions getSupplementalGroups()
public void setSupplementalGroups(SupplementalGroupsStrategyOptions supplementalGroups)
supplementalGroups
- The supplementalGroupspublic List<String> getUsers()
public void setUsers(List<String> users)
users
- The usersCopyright © 2011–2016 Red Hat. All rights reserved.