case class Workload(internalId: String, pod: Option[Pod], deployment: Option[Deployment], service: Service, ingress: Option[Ingress] = None, loaded: Boolean = false) extends Product with Serializable
A Workload as being used by the Executor which can be sent to Kubernetes consisting of different Kubernetes Items.
Can also be retrieved by Kubernetes.
- loaded
if true, the information is fetched from kubernetes
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Workload
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def create(namespace: Option[String], ops: K8sOperations)(implicit ec: ExecutionContext): Future[Workload]
Create items within kubernetes.
- val deployment: Option[Deployment]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hasBrokenImage(config: Config, currentTime: Instant): Option[String]
Check if this workload has a broken image.
- val ingress: Option[Ingress]
- def ingressUrl(config: Config, kubernetesHost: String): Option[String]
Returns the URL of the ingress.
- val internalId: String
- def internalUrl: String
Returns the Mantik internal URL for the workload
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val loaded: Boolean
- 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 pod: Option[Pod]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val service: Service
- def stop(remove: Boolean, ops: K8sOperations, killReason: Option[String] = None)(implicit ec: ExecutionContext): Future[Unit]
Stop a workload.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def workerState: WorkerState
- def workerType: WorkerType
Figures out the worker type