class CreateOrUpdateAction[T <: ObjectResource] extends SingleResourceAction[T]
Captures create or update of the resource. This action does not fail if the resource already exists. If the resource already exists, it will be updated.
- Source
- Action.scala
- Alphabetic
- By Inheritance
- CreateOrUpdateAction
- SingleResourceAction
- ResourceAction
- Action
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CreateOrUpdateAction(resource: T, format: Format[T], resourceDefinition: ResourceDefinition[T], editor: ObjectEditor[T])
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( ... ) @native() @HotSpotIntrinsicCandidate()
- implicit val editor: ObjectEditor[T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
execute(client: KubernetesClient)(implicit sys: ActorSystem, ec: ExecutionContext, lc: LoggingContext): Future[Action]
Creates the resources if it does not exist.
Creates the resources if it does not exist. If it does exist it updates the resource as required.
- Definition Classes
- CreateOrUpdateAction → Action
-
def
executed: String
- Definition Classes
- SingleResourceAction → Action
-
def
executing: String
- Definition Classes
- SingleResourceAction → Action
- implicit val format: Format[T]
-
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
-
val
name: String
The action name.
The action name.
- Definition Classes
- CreateOrUpdateAction → Action
-
def
namespace: Some[String]
- Definition Classes
- SingleResourceAction → Action
-
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
recoverFromError[O](future: Future[O], client: KubernetesClient, retries: Int, f: (KubernetesClient, Int) ⇒ Future[O])(implicit ec: ExecutionContext): Future[O]
It is expected that f will always first get the resource in question to break out of the conflict, to avoid a fast recover loop.
It is expected that f will always first get the resource in question to break out of the conflict, to avoid a fast recover loop.
- Attributes
- protected
- Definition Classes
- ResourceAction
-
val
resource: T
The resource that is applied
The resource that is applied
- Definition Classes
- CreateOrUpdateAction → SingleResourceAction
- implicit val resourceDefinition: ResourceDefinition[T]
-
def
resourceName: String
The name of the resource that this action is applied to
The name of the resource that this action is applied to
- Definition Classes
- SingleResourceAction
-
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( ... )