PodSecurityContext

io.k8s.api.core.v1.PodSecurityContext
See thePodSecurityContext companion object
final case class PodSecurityContext(fsGroupChangePolicy: Option[String], sysctls: Option[Seq[Sysctl]], fsGroup: Option[Long], supplementalGroups: Option[Seq[Long]], runAsGroup: Option[Long], seccompProfile: Option[SeccompProfile], windowsOptions: Option[WindowsSecurityContextOptions], seLinuxOptions: Option[SELinuxOptions], runAsUser: Option[Long], runAsNonRoot: Option[Boolean])

PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.

Attributes

Companion
object
Source
PodSecurityContext.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addSupplementalGroups(newValues: Long*): PodSecurityContext

Appends new values to supplementalGroups

Appends new values to supplementalGroups

Attributes

Source
PodSecurityContext.scala

Appends new values to sysctls

Appends new values to sysctls

Attributes

Source
PodSecurityContext.scala
def mapFsGroup(f: Long => Long): PodSecurityContext

if fsGroup has a value, transforms to the result of function

if fsGroup has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala
def mapFsGroupChangePolicy(f: String => String): PodSecurityContext

if fsGroupChangePolicy has a value, transforms to the result of function

if fsGroupChangePolicy has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala
def mapRunAsGroup(f: Long => Long): PodSecurityContext

if runAsGroup has a value, transforms to the result of function

if runAsGroup has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala
def mapRunAsNonRoot(f: Boolean => Boolean): PodSecurityContext

if runAsNonRoot has a value, transforms to the result of function

if runAsNonRoot has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala
def mapRunAsUser(f: Long => Long): PodSecurityContext

if runAsUser has a value, transforms to the result of function

if runAsUser has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala

if seLinuxOptions has a value, transforms to the result of function

if seLinuxOptions has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala

if seccompProfile has a value, transforms to the result of function

if seccompProfile has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala
def mapSupplementalGroups(f: (Seq[Long]) => Seq[Long]): PodSecurityContext

if supplementalGroups has a value, transforms to the result of function

if supplementalGroups has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala
def mapSysctls(f: (Seq[Sysctl]) => Seq[Sysctl]): PodSecurityContext

if sysctls has a value, transforms to the result of function

if sysctls has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala

if windowsOptions has a value, transforms to the result of function

if windowsOptions has a value, transforms to the result of function

Attributes

Source
PodSecurityContext.scala
def withFsGroup(value: Long): PodSecurityContext

Returns a new data with fsGroup set to new value

Returns a new data with fsGroup set to new value

Attributes

Source
PodSecurityContext.scala

Returns a new data with fsGroupChangePolicy set to new value

Returns a new data with fsGroupChangePolicy set to new value

Attributes

Source
PodSecurityContext.scala

Returns a new data with runAsGroup set to new value

Returns a new data with runAsGroup set to new value

Attributes

Source
PodSecurityContext.scala
def withRunAsNonRoot(value: Boolean): PodSecurityContext

Returns a new data with runAsNonRoot set to new value

Returns a new data with runAsNonRoot set to new value

Attributes

Source
PodSecurityContext.scala
def withRunAsUser(value: Long): PodSecurityContext

Returns a new data with runAsUser set to new value

Returns a new data with runAsUser set to new value

Attributes

Source
PodSecurityContext.scala

Returns a new data with seLinuxOptions set to new value

Returns a new data with seLinuxOptions set to new value

Attributes

Source
PodSecurityContext.scala

Returns a new data with seccompProfile set to new value

Returns a new data with seccompProfile set to new value

Attributes

Source
PodSecurityContext.scala

Returns a new data with supplementalGroups set to new value

Returns a new data with supplementalGroups set to new value

Attributes

Source
PodSecurityContext.scala

Returns a new data with sysctls set to new value

Returns a new data with sysctls set to new value

Attributes

Source
PodSecurityContext.scala

Returns a new data with windowsOptions set to new value

Returns a new data with windowsOptions set to new value

Attributes

Source
PodSecurityContext.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product