[][src]Enum roperator::config::UpdateStrategy

pub enum UpdateStrategy {
    Replace,
    Recreate,
    OnDelete,
}

What to do when there's a difference between the "desired" state of a given resource and the actual state of that resource in the cluster. The three options are:

  • Update the resource in place using an HTTP PUT request
  • First delete the resource, then try to re-create it later
  • Don't update it automatically, and instead wait for something else to delete the resource and then re-create it with the new state

There's not yet any option for using PATCH requests.

Variants

Replace

Means that the resource will be updated in place using an HTTP PUT request

Recreate

The resource will first get deleted, and then re-created with the new state

OnDelete

The resource will not be modified in any way. Instead, we'll wait until the resource is deleted by some other means and then re-create it

Trait Implementations

impl Clone for UpdateStrategy[src]

impl Copy for UpdateStrategy[src]

impl Debug for UpdateStrategy[src]

impl PartialEq<UpdateStrategy> for UpdateStrategy[src]

impl StructuralPartialEq for UpdateStrategy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.