final case class SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Long] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Long] = 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
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SecurityContext(capabilities: Option[Capabilities] = None, readOnlyRootFilesystem: Option[Boolean] = None, allowPrivilegeEscalation: Option[Boolean] = None, procMount: Option[String] = None, runAsGroup: Option[Long] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Long] = 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() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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: (Long) ⇒ Long): 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: (Long) ⇒ Long): 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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val privileged: Option[Boolean]
- val procMount: Option[String]
- val readOnlyRootFilesystem: Option[Boolean]
- val runAsGroup: Option[Long]
- val runAsNonRoot: Option[Boolean]
- val runAsUser: Option[Long]
- val seLinuxOptions: Option[SELinuxOptions]
- val seccompProfile: Option[SeccompProfile]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- 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: Long): 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: Long): 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