c

cloudflow.operator.action

CreateOrUpdateAction

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
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CreateOrUpdateAction
  2. SingleResourceAction
  3. ResourceAction
  4. Action
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CreateOrUpdateAction(resource: T, format: Format[T], resourceDefinition: ResourceDefinition[T], editor: ObjectEditor[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. implicit val editor: ObjectEditor[T]
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. 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
    CreateOrUpdateActionAction
  10. def executed: String
    Definition Classes
    SingleResourceActionAction
  11. def executing: String
    Definition Classes
    SingleResourceActionAction
  12. implicit val format: Format[T]
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val name: String

    The action name.

    The action name.

    Definition Classes
    CreateOrUpdateActionAction
  17. def namespace: Some[String]
    Definition Classes
    SingleResourceActionAction
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. 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
  22. val resource: T

    The resource that is applied

    The resource that is applied

    Definition Classes
    CreateOrUpdateActionSingleResourceAction
  23. implicit val resourceDefinition: ResourceDefinition[T]
  24. 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
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from SingleResourceAction[T]

Inherited from ResourceAction[T]

Inherited from Action

Inherited from AnyRef

Inherited from Any

Ungrouped