final case class Container(name: String, readinessProbe: Option[Probe] = None, livenessProbe: Option[Probe] = None, lifecycle: Option[Lifecycle] = None, image: Option[String] = None, resizePolicy: Option[Seq[ContainerResizePolicy]] = None, stdinOnce: Option[Boolean] = None, ports: Option[Seq[ContainerPort]] = None, startupProbe: Option[Probe] = None, command: Option[Seq[String]] = None, terminationMessagePolicy: Option[String] = None, restartPolicy: Option[String] = None, stdin: Option[Boolean] = None, terminationMessagePath: Option[String] = None, resources: Option[ResourceRequirements] = None, envFrom: Option[Seq[EnvFromSource]] = None, volumeDevices: Option[Seq[VolumeDevice]] = None, args: Option[Seq[String]] = None, tty: Option[Boolean] = None, imagePullPolicy: Option[String] = None, workingDir: Option[String] = None, volumeMounts: Option[Seq[VolumeMount]] = None, env: Option[Seq[EnvVar]] = None, securityContext: Option[SecurityContext] = None) extends Product with Serializable
A single application container that you want to run within a pod.
- Source
- Container.scala
- Alphabetic
- By Inheritance
- Container
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Container(name: String, readinessProbe: Option[Probe] = None, livenessProbe: Option[Probe] = None, lifecycle: Option[Lifecycle] = None, image: Option[String] = None, resizePolicy: Option[Seq[ContainerResizePolicy]] = None, stdinOnce: Option[Boolean] = None, ports: Option[Seq[ContainerPort]] = None, startupProbe: Option[Probe] = None, command: Option[Seq[String]] = None, terminationMessagePolicy: Option[String] = None, restartPolicy: Option[String] = None, stdin: Option[Boolean] = None, terminationMessagePath: Option[String] = None, resources: Option[ResourceRequirements] = None, envFrom: Option[Seq[EnvFromSource]] = None, volumeDevices: Option[Seq[VolumeDevice]] = None, args: Option[Seq[String]] = None, tty: Option[Boolean] = None, imagePullPolicy: Option[String] = None, workingDir: Option[String] = None, volumeMounts: Option[Seq[VolumeMount]] = None, env: Option[Seq[EnvVar]] = None, securityContext: Option[SecurityContext] = 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
addArgs(newValues: String*): Container
Appends new values to args
-
def
addCommand(newValues: String*): Container
Appends new values to command
-
def
addEnv(newValues: EnvVar*): Container
Appends new values to env
-
def
addEnvFrom(newValues: EnvFromSource*): Container
Appends new values to envFrom
-
def
addPorts(newValues: ContainerPort*): Container
Appends new values to ports
-
def
addResizePolicy(newValues: ContainerResizePolicy*): Container
Appends new values to resizePolicy
-
def
addVolumeDevices(newValues: VolumeDevice*): Container
Appends new values to volumeDevices
-
def
addVolumeMounts(newValues: VolumeMount*): Container
Appends new values to volumeMounts
- val args: Option[Seq[String]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val command: Option[Seq[String]]
- val env: Option[Seq[EnvVar]]
- val envFrom: Option[Seq[EnvFromSource]]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val image: Option[String]
- val imagePullPolicy: Option[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lifecycle: Option[Lifecycle]
- val livenessProbe: Option[Probe]
-
def
mapArgs(f: (Seq[String]) ⇒ Seq[String]): Container
if args has a value, transforms to the result of function
-
def
mapCommand(f: (Seq[String]) ⇒ Seq[String]): Container
if command has a value, transforms to the result of function
-
def
mapEnv(f: (Seq[EnvVar]) ⇒ Seq[EnvVar]): Container
if env has a value, transforms to the result of function
-
def
mapEnvFrom(f: (Seq[EnvFromSource]) ⇒ Seq[EnvFromSource]): Container
if envFrom has a value, transforms to the result of function
-
def
mapImage(f: (String) ⇒ String): Container
if image has a value, transforms to the result of function
-
def
mapImagePullPolicy(f: (String) ⇒ String): Container
if imagePullPolicy has a value, transforms to the result of function
-
def
mapLifecycle(f: (Lifecycle) ⇒ Lifecycle): Container
if lifecycle has a value, transforms to the result of function
-
def
mapLivenessProbe(f: (Probe) ⇒ Probe): Container
if livenessProbe has a value, transforms to the result of function
-
def
mapName(f: (String) ⇒ String): Container
transforms name to result of function
-
def
mapPorts(f: (Seq[ContainerPort]) ⇒ Seq[ContainerPort]): Container
if ports has a value, transforms to the result of function
-
def
mapReadinessProbe(f: (Probe) ⇒ Probe): Container
if readinessProbe has a value, transforms to the result of function
-
def
mapResizePolicy(f: (Seq[ContainerResizePolicy]) ⇒ Seq[ContainerResizePolicy]): Container
if resizePolicy has a value, transforms to the result of function
-
def
mapResources(f: (ResourceRequirements) ⇒ ResourceRequirements): Container
if resources has a value, transforms to the result of function
-
def
mapRestartPolicy(f: (String) ⇒ String): Container
if restartPolicy has a value, transforms to the result of function
-
def
mapSecurityContext(f: (SecurityContext) ⇒ SecurityContext): Container
if securityContext has a value, transforms to the result of function
-
def
mapStartupProbe(f: (Probe) ⇒ Probe): Container
if startupProbe has a value, transforms to the result of function
-
def
mapStdin(f: (Boolean) ⇒ Boolean): Container
if stdin has a value, transforms to the result of function
-
def
mapStdinOnce(f: (Boolean) ⇒ Boolean): Container
if stdinOnce has a value, transforms to the result of function
-
def
mapTerminationMessagePath(f: (String) ⇒ String): Container
if terminationMessagePath has a value, transforms to the result of function
-
def
mapTerminationMessagePolicy(f: (String) ⇒ String): Container
if terminationMessagePolicy has a value, transforms to the result of function
-
def
mapTty(f: (Boolean) ⇒ Boolean): Container
if tty has a value, transforms to the result of function
-
def
mapVolumeDevices(f: (Seq[VolumeDevice]) ⇒ Seq[VolumeDevice]): Container
if volumeDevices has a value, transforms to the result of function
-
def
mapVolumeMounts(f: (Seq[VolumeMount]) ⇒ Seq[VolumeMount]): Container
if volumeMounts has a value, transforms to the result of function
-
def
mapWorkingDir(f: (String) ⇒ String): Container
if workingDir has a value, transforms to the result of function
- val name: String
-
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 ports: Option[Seq[ContainerPort]]
- val readinessProbe: Option[Probe]
- val resizePolicy: Option[Seq[ContainerResizePolicy]]
- val resources: Option[ResourceRequirements]
- val restartPolicy: Option[String]
- val securityContext: Option[SecurityContext]
- val startupProbe: Option[Probe]
- val stdin: Option[Boolean]
- val stdinOnce: Option[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val terminationMessagePath: Option[String]
- val terminationMessagePolicy: Option[String]
- val tty: Option[Boolean]
- val volumeDevices: Option[Seq[VolumeDevice]]
- val volumeMounts: Option[Seq[VolumeMount]]
-
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( ... )
-
def
withArgs(value: Seq[String]): Container
Returns a new data with args set to new value
-
def
withCommand(value: Seq[String]): Container
Returns a new data with command set to new value
-
def
withEnv(value: Seq[EnvVar]): Container
Returns a new data with env set to new value
-
def
withEnvFrom(value: Seq[EnvFromSource]): Container
Returns a new data with envFrom set to new value
-
def
withImage(value: String): Container
Returns a new data with image set to new value
-
def
withImagePullPolicy(value: String): Container
Returns a new data with imagePullPolicy set to new value
-
def
withLifecycle(value: Lifecycle): Container
Returns a new data with lifecycle set to new value
-
def
withLivenessProbe(value: Probe): Container
Returns a new data with livenessProbe set to new value
-
def
withName(value: String): Container
Returns a new data with name set to new value
-
def
withPorts(value: Seq[ContainerPort]): Container
Returns a new data with ports set to new value
-
def
withReadinessProbe(value: Probe): Container
Returns a new data with readinessProbe set to new value
-
def
withResizePolicy(value: Seq[ContainerResizePolicy]): Container
Returns a new data with resizePolicy set to new value
-
def
withResources(value: ResourceRequirements): Container
Returns a new data with resources set to new value
-
def
withRestartPolicy(value: String): Container
Returns a new data with restartPolicy set to new value
-
def
withSecurityContext(value: SecurityContext): Container
Returns a new data with securityContext set to new value
-
def
withStartupProbe(value: Probe): Container
Returns a new data with startupProbe set to new value
-
def
withStdin(value: Boolean): Container
Returns a new data with stdin set to new value
-
def
withStdinOnce(value: Boolean): Container
Returns a new data with stdinOnce set to new value
-
def
withTerminationMessagePath(value: String): Container
Returns a new data with terminationMessagePath set to new value
-
def
withTerminationMessagePolicy(value: String): Container
Returns a new data with terminationMessagePolicy set to new value
-
def
withTty(value: Boolean): Container
Returns a new data with tty set to new value
-
def
withVolumeDevices(value: Seq[VolumeDevice]): Container
Returns a new data with volumeDevices set to new value
-
def
withVolumeMounts(value: Seq[VolumeMount]): Container
Returns a new data with volumeMounts set to new value
-
def
withWorkingDir(value: String): Container
Returns a new data with workingDir set to new value
- val workingDir: Option[String]