class K8sOperations extends ComponentBase
Wraps Kubernetes Operations
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- K8sOperations
- ComponentBase
- AkkaHelper
- Component
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new K8sOperations(config: Config, rootClient: KubernetesClient)(implicit akkaRuntime: AkkaRuntime)
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
-
implicit
def
actorSystem: ActorSystem
- Attributes
- protected
- Definition Classes
- AkkaHelper
-
def
addShutdownHook(f: ⇒ Future[_]): Unit
- Attributes
- protected
- Definition Classes
- ComponentBase
-
implicit
val
akkaRuntime: AkkaRuntime
- Attributes
- protected
- Definition Classes
- ComponentBase → Component
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byName[T <: ObjectResource](namespace: Option[String], name: String)(implicit format: Format[T], resourceDefinition: ResourceDefinition[T]): Future[Option[T]]
-
def
clock: Clock
- Attributes
- protected
- Definition Classes
- AkkaHelper
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
clusterServer: Uri
Figures out the name/ip of Kubernetes we are talking to.
Figures out the name/ip of Kubernetes we are talking to. (For ingress interpolation)
-
def
config: com.typesafe.config.Config
- Attributes
- protected
- Definition Classes
- AkkaHelper
-
def
create[O <: ObjectResource](namespace: Option[String], obj: O)(implicit fmt: Format[O], rd: ResourceDefinition[O]): Future[O]
Create an object in Kubernetes.
-
def
createOrReplace[O <: ObjectResource](namespace: Option[String], obj: O)(implicit fmt: Format[O], rd: ResourceDefinition[O]): Future[O]
Creates or replaces
-
def
delete[O <: ObjectResource](namespace: Option[String], name: String, gracePeriodSecondsOverride: Option[Int] = None)(implicit rd: ResourceDefinition[O]): Future[Unit]
Delete an object in Kubernetes.
- def deploymentSetReplicas(namespace: Option[String], deploymentName: String, replicas: Int): Future[Deployment]
-
def
ensureNamespace(namespace: String): Future[Namespace]
Ensure the existence of a namespace, and returns a kubernetes client for this namespace.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
errorHandling[T](what: ⇒ String, silent: Boolean = false)(f: ⇒ Future[T]): Future[T]
Retries an operation on Error 500 Errors.
Retries an operation on Error 500 Errors.
- what
name for the operation executed
- silent
if true, when do not log on regular errors
- f
the operation to run
-
implicit
def
executionContext: ExecutionContext
- Attributes
- protected
- Definition Classes
- AkkaHelper
-
def
getAllManagedPendingPods(): Future[Map[String, List[Pod]]]
Returns all Pods which are managed by this executor and which are in pending state.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jsonPatch[O <: ObjectResource](namespace: Option[String], name: String, jsonRequest: JsValue)(implicit fmt: Format[O], rd: ResourceDefinition[O]): Future[O]
- def listSelected[T <: KListItem](namespace: Option[String], labelFilter: Seq[(String, String)])(implicit format: Format[ListResource[T]], rd: ResourceDefinition[ListResource[T]]): Future[ListResource[T]]
-
final
val
logger: Logger
- Attributes
- protected
- Definition Classes
- ComponentBase
-
implicit
def
materializer: Materializer
- Attributes
- protected
- Definition Classes
- AkkaHelper
-
def
maybeCreate[O <: ObjectResource](namespace: Option[String], maybeObj: Option[O])(implicit fmt: Format[O], rd: ResourceDefinition[O]): Future[Option[O]]
Like create, but ignores argument if it's None.
-
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()
-
def
sendKillPatch[T <: ObjectResource](name: String, namespace: Option[String], reason: String)(implicit fmt: Format[T], rd: ResourceDefinition[T]): Future[Unit]
Add Kill-Annotations to some items.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )