public abstract class RollingUpdater<T extends io.fabric8.kubernetes.api.model.HasMetadata,L> extends Object
Modifier and Type | Field and Description |
---|---|
protected ClientContext |
clientContext |
static String |
DEPLOYMENT_KEY |
protected String |
namespace |
Modifier | Constructor and Description |
---|---|
protected |
RollingUpdater(ClientContext clientContext,
String namespace) |
protected |
RollingUpdater(ClientContext clientContext,
String namespace,
long rollingTimeoutMillis,
long loggingIntervalMillis) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createClone(T obj,
String newName,
String newDeploymentHash) |
protected abstract int |
getReplicas(T obj) |
protected Operation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource<io.fabric8.kubernetes.api.model.Pod>> |
pods() |
protected abstract T |
removeDeploymentKey(String name) |
static Map<String,Object> |
requestPayLoadForRolloutPause() |
static Map<String,Object> |
requestPayLoadForRolloutRestart() |
static Map<String,Object> |
requestPayLoadForRolloutResume() |
protected abstract Operation<T,L,RollableScalableResource<T>> |
resources() |
T |
rollUpdate(T oldObj,
T newObj) |
protected FilterWatchListDeletable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList> |
selectedPodLister(io.fabric8.kubernetes.api.model.LabelSelector selector) |
protected abstract WatchListDeletable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList> |
selectedPodLister(T obj) |
protected abstract T |
setReplicas(T obj,
int replicas) |
protected abstract T |
updateDeploymentKey(String name,
String hash) |
public static final String DEPLOYMENT_KEY
protected final ClientContext clientContext
protected final String namespace
protected RollingUpdater(ClientContext clientContext, String namespace)
protected RollingUpdater(ClientContext clientContext, String namespace, long rollingTimeoutMillis, long loggingIntervalMillis)
protected abstract WatchListDeletable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList> selectedPodLister(T obj)
protected abstract int getReplicas(T obj)
protected abstract Operation<T,L,RollableScalableResource<T>> resources()
protected Operation<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList,PodResource<io.fabric8.kubernetes.api.model.Pod>> pods()
protected FilterWatchListDeletable<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodList> selectedPodLister(io.fabric8.kubernetes.api.model.LabelSelector selector)
Copyright © 2015–2020 Red Hat. All rights reserved.