public class DeploymentHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DEPLOYMENT_UNIQUE_LABEL_KEY |
static String |
REVISION_ANNOTATION |
| Constructor and Description |
|---|
DeploymentHelper() |
| Modifier and Type | Method and Description |
|---|---|
static io.kubernetes.client.openapi.models.V1ReplicaSet |
getAllReplicaSets(io.kubernetes.client.openapi.models.V1Deployment deployment,
io.kubernetes.client.openapi.apis.AppsV1Api api,
List<io.kubernetes.client.openapi.models.V1ReplicaSet> oldRSes,
List<io.kubernetes.client.openapi.models.V1ReplicaSet> allOldRSes)
getAllReplicaSets get the old replica sets and return new replica targeted by the given
Deployment.
|
static Long |
revision(io.kubernetes.client.openapi.models.V1ObjectMeta meta)
revision returns the revision number of the input object.
|
public static final String DEFAULT_DEPLOYMENT_UNIQUE_LABEL_KEY
public static final String REVISION_ANNOTATION
public static io.kubernetes.client.openapi.models.V1ReplicaSet getAllReplicaSets(io.kubernetes.client.openapi.models.V1Deployment deployment,
io.kubernetes.client.openapi.apis.AppsV1Api api,
List<io.kubernetes.client.openapi.models.V1ReplicaSet> oldRSes,
List<io.kubernetes.client.openapi.models.V1ReplicaSet> allOldRSes)
throws io.kubernetes.client.openapi.ApiException
deployment - the given deploymentapi - the client interfaceoldRSes - container of all old ReplicaSet exclude the ones with no podsallOldRSes - container of all old ReplicaSetio.kubernetes.client.openapi.ApiExceptionpublic static Long revision(io.kubernetes.client.openapi.models.V1ObjectMeta meta)
meta - metadata of objectCopyright © 2023. All rights reserved.