final case class PodSecurityContext(fsGroupChangePolicy: Option[String] = None, sysctls: Option[Seq[Sysctl]] = None, fsGroup: Option[Long] = None, supplementalGroups: Option[Seq[Long]] = None, runAsGroup: Option[Long] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Long] = None, runAsNonRoot: Option[Boolean] = None) extends Product with Serializable
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.
- Source
- PodSecurityContext.scala
- Alphabetic
- By Inheritance
- PodSecurityContext
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PodSecurityContext(fsGroupChangePolicy: Option[String] = None, sysctls: Option[Seq[Sysctl]] = None, fsGroup: Option[Long] = None, supplementalGroups: Option[Seq[Long]] = None, runAsGroup: Option[Long] = None, seccompProfile: Option[SeccompProfile] = None, windowsOptions: Option[WindowsSecurityContextOptions] = None, seLinuxOptions: Option[SELinuxOptions] = None, runAsUser: Option[Long] = 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
-
def
addSupplementalGroups(newValues: Long*): PodSecurityContext
Appends new values to supplementalGroups
-
def
addSysctls(newValues: Sysctl*): PodSecurityContext
Appends new values to sysctls
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fsGroup: Option[Long]
- val fsGroupChangePolicy: Option[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapFsGroup(f: (Long) ⇒ Long): PodSecurityContext
if fsGroup has a value, transforms to the result of function
-
def
mapFsGroupChangePolicy(f: (String) ⇒ String): PodSecurityContext
if fsGroupChangePolicy has a value, transforms to the result of function
-
def
mapRunAsGroup(f: (Long) ⇒ Long): PodSecurityContext
if runAsGroup has a value, transforms to the result of function
-
def
mapRunAsNonRoot(f: (Boolean) ⇒ Boolean): PodSecurityContext
if runAsNonRoot has a value, transforms to the result of function
-
def
mapRunAsUser(f: (Long) ⇒ Long): PodSecurityContext
if runAsUser has a value, transforms to the result of function
-
def
mapSeLinuxOptions(f: (SELinuxOptions) ⇒ SELinuxOptions): PodSecurityContext
if seLinuxOptions has a value, transforms to the result of function
-
def
mapSeccompProfile(f: (SeccompProfile) ⇒ SeccompProfile): PodSecurityContext
if seccompProfile has a value, transforms to the result of function
-
def
mapSupplementalGroups(f: (Seq[Long]) ⇒ Seq[Long]): PodSecurityContext
if supplementalGroups has a value, transforms to the result of function
-
def
mapSysctls(f: (Seq[Sysctl]) ⇒ Seq[Sysctl]): PodSecurityContext
if sysctls has a value, transforms to the result of function
-
def
mapWindowsOptions(f: (WindowsSecurityContextOptions) ⇒ WindowsSecurityContextOptions): PodSecurityContext
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 runAsGroup: Option[Long]
- val runAsNonRoot: Option[Boolean]
- val runAsUser: Option[Long]
- val seLinuxOptions: Option[SELinuxOptions]
- val seccompProfile: Option[SeccompProfile]
- val supplementalGroups: Option[Seq[Long]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val sysctls: Option[Seq[Sysctl]]
-
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
withFsGroup(value: Long): PodSecurityContext
Returns a new data with fsGroup set to new value
-
def
withFsGroupChangePolicy(value: String): PodSecurityContext
Returns a new data with fsGroupChangePolicy set to new value
-
def
withRunAsGroup(value: Long): PodSecurityContext
Returns a new data with runAsGroup set to new value
-
def
withRunAsNonRoot(value: Boolean): PodSecurityContext
Returns a new data with runAsNonRoot set to new value
-
def
withRunAsUser(value: Long): PodSecurityContext
Returns a new data with runAsUser set to new value
-
def
withSeLinuxOptions(value: SELinuxOptions): PodSecurityContext
Returns a new data with seLinuxOptions set to new value
-
def
withSeccompProfile(value: SeccompProfile): PodSecurityContext
Returns a new data with seccompProfile set to new value
-
def
withSupplementalGroups(value: Seq[Long]): PodSecurityContext
Returns a new data with supplementalGroups set to new value
-
def
withSysctls(value: Seq[Sysctl]): PodSecurityContext
Returns a new data with sysctls set to new value
-
def
withWindowsOptions(value: WindowsSecurityContextOptions): PodSecurityContext
Returns a new data with windowsOptions set to new value