final case class SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Int] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Int] = None, privileged: Option[Boolean] = None, runAsNonRoot: Option[Boolean] = None) extends Product with Serializable
SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
- Source
- SecurityContext.scala
- Alphabetic
- By Inheritance
- SecurityContext
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Int] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Int] = None, privileged: Option[Boolean] = None, runAsNonRoot: Option[Boolean] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowPrivilegeEscalation: Option[Boolean]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val capabilities: Option[Capabilities]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapAllowPrivilegeEscalation(f: (Boolean) => Boolean): SecurityContext
if allowPrivilegeEscalation has a value, transforms to the result of function
- def mapCapabilities(f: (Capabilities) => Capabilities): SecurityContext
if capabilities has a value, transforms to the result of function
- def mapPrivileged(f: (Boolean) => Boolean): SecurityContext
if privileged has a value, transforms to the result of function
- def mapProcMount(f: (String) => String): SecurityContext
if procMount has a value, transforms to the result of function
- def mapReadOnlyRootFilesystem(f: (Boolean) => Boolean): SecurityContext
if readOnlyRootFilesystem has a value, transforms to the result of function
- def mapRunAsGroup(f: (Int) => Int): SecurityContext
if runAsGroup has a value, transforms to the result of function
- def mapRunAsNonRoot(f: (Boolean) => Boolean): SecurityContext
if runAsNonRoot has a value, transforms to the result of function
- def mapRunAsUser(f: (Int) => Int): SecurityContext
if runAsUser has a value, transforms to the result of function
- def mapSeLinuxOptions(f: (SELinuxOptions) => SELinuxOptions): SecurityContext
if seLinuxOptions has a value, transforms to the result of function
- def mapSeccompProfile(f: (SeccompProfile) => SeccompProfile): SecurityContext
if seccompProfile has a value, transforms to the result of function
- def mapWindowsOptions(f: (WindowsSecurityContextOptions) => WindowsSecurityContextOptions): SecurityContext
if windowsOptions has a value, transforms to the result of function
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val privileged: Option[Boolean]
- val procMount: Option[String]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val readOnlyRootFilesystem: Option[Boolean]
- val runAsGroup: Option[Int]
- val runAsNonRoot: Option[Boolean]
- val runAsUser: Option[Int]
- val seLinuxOptions: Option[SELinuxOptions]
- val seccompProfile: Option[SeccompProfile]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val windowsOptions: Option[WindowsSecurityContextOptions]
- def withAllowPrivilegeEscalation(value: Boolean): SecurityContext
Returns a new data with allowPrivilegeEscalation set to new value
- def withCapabilities(value: Capabilities): SecurityContext
Returns a new data with capabilities set to new value
- def withPrivileged(value: Boolean): SecurityContext
Returns a new data with privileged set to new value
- def withProcMount(value: String): SecurityContext
Returns a new data with procMount set to new value
- def withReadOnlyRootFilesystem(value: Boolean): SecurityContext
Returns a new data with readOnlyRootFilesystem set to new value
- def withRunAsGroup(value: Int): SecurityContext
Returns a new data with runAsGroup set to new value
- def withRunAsNonRoot(value: Boolean): SecurityContext
Returns a new data with runAsNonRoot set to new value
- def withRunAsUser(value: Int): SecurityContext
Returns a new data with runAsUser set to new value
- def withSeLinuxOptions(value: SELinuxOptions): SecurityContext
Returns a new data with seLinuxOptions set to new value
- def withSeccompProfile(value: SeccompProfile): SecurityContext
Returns a new data with seccompProfile set to new value
- def withWindowsOptions(value: WindowsSecurityContextOptions): SecurityContext
Returns a new data with windowsOptions set to new value