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
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SecurityContext
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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( ... ) @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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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]
- 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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val windowsOptions: Option[WindowsSecurityContextOptions]
- def withAllowPrivilegeEscalation(value: Boolean): SecurityContext
- def withCapabilities(value: Capabilities): SecurityContext
- def withPrivileged(value: Boolean): SecurityContext
- def withProcMount(value: String): SecurityContext
- def withReadOnlyRootFilesystem(value: Boolean): SecurityContext
- def withRunAsGroup(value: Int): SecurityContext
- def withRunAsNonRoot(value: Boolean): SecurityContext
- def withRunAsUser(value: Int): SecurityContext
- def withSeLinuxOptions(value: SELinuxOptions): SecurityContext
- def withSeccompProfile(value: SeccompProfile): SecurityContext
- def withWindowsOptions(value: WindowsSecurityContextOptions): SecurityContext