public class DeploymentConfig extends ReplicationController implements IDeploymentConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPLOYMENTCONFIG_CONTAINERS |
ENV, IMAGE, SERVICEACCOUNTNAME, SPEC_REPLICAS, SPEC_SELECTOR, SPEC_TEMPLATE_CONTAINERS, SPEC_TEMPLATE_LABELS, STATUS_REPLICA, VOLUMESDEPLOYMENT_PHASEANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, GROUP, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, VALUE, VERBS, VERSION| Constructor and Description |
|---|
DeploymentConfig(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
IDeploymentTrigger |
addTrigger(String type)
Add a trigger of the given type or null if the type is unrecognized
|
boolean |
didImageTrigger(String imageNameTag)
Return whether deployments have fired based on an image trigger for a
particular image
|
String |
getDeploymentStrategyType()
Convenience method to get the deployment strategy type
|
String |
getImageHexIDForImageNameAndTag(String imageNameTag)
Get the image hexadecimal ID for the image tag used with the latest image
change trigger
|
String |
getImageNameAndTagForTriggeredDeployment()
Get the image name:tag from a image change trigger firing
|
List<String> |
getImageNames() |
int |
getLatestVersionNumber()
Get the latest version number
|
Collection<IDeploymentTrigger> |
getTriggers()
Returns the trigger of the given type or null if it doesn not exist
|
Collection<String> |
getTriggerTypes()
Get the list of deployment triggers
|
boolean |
haveTriggersFired()
Return whether deployments have fired because of triggers
|
void |
setLatestVersionNumber(int newVersionNumber)
Set the latest version number
|
addContainer, addContainer, addContainer, addTemplateLabel, addVolume, addVolume, getContainer, getContainers, getCurrentReplicaCount, getDesiredReplicaCount, getEnvironmentVariables, getEnvironmentVariables, getImages, getReplicas, getReplicaSelector, getServiceAccountName, getTemplateLabels, getVolumes, removeEnvironmentVariable, removeEnvironmentVariable, setContainers, setDesiredReplicaCount, setEnvironmentVariable, setEnvironmentVariable, setReplicas, setReplicaSelector, setReplicaSelector, setServiceAccountName, setVolumesaccept, addLabel, asBoolean, asBoolean, asInt, asInt, asMap, asSet, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getMetadata, getModifiableCapabilities, getName, getNamespace, getNamespaceName, getNode, getPath, getProject, getPropertyKeys, getResourceVersion, has, hashCode, isAnnotatedWith, refresh, removeAnnotation, set, set, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, setNode, supports, toJson, toJson, toPrettyString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddContainer, addContainer, addContainer, addTemplateLabel, addVolume, addVolume, getContainer, getContainers, getCurrentReplicaCount, getDesiredReplicaCount, getEnvironmentVariables, getEnvironmentVariables, getImages, getReplicas, getReplicaSelector, getServiceAccountName, getTemplateLabels, getVolumes, removeEnvironmentVariable, removeEnvironmentVariable, setContainers, setDesiredReplicaCount, setEnvironmentVariable, setEnvironmentVariable, setReplicas, setReplicaSelector, setReplicaSelector, setServiceAccountName, setVolumesaddLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonpublic static final String DEPLOYMENTCONFIG_CONTAINERS
public Collection<String> getTriggerTypes()
IDeploymentConfiggetTriggerTypes in interface IDeploymentConfigpublic Collection<IDeploymentTrigger> getTriggers()
IDeploymentConfiggetTriggers in interface IDeploymentConfigpublic int getLatestVersionNumber()
IDeploymentConfiggetLatestVersionNumber in interface IDeploymentConfigpublic void setLatestVersionNumber(int newVersionNumber)
IDeploymentConfigsetLatestVersionNumber in interface IDeploymentConfigpublic IDeploymentTrigger addTrigger(String type)
IDeploymentConfigaddTrigger in interface IDeploymentConfigpublic String getDeploymentStrategyType()
IDeploymentConfiggetDeploymentStrategyType in interface IDeploymentConfigpublic boolean haveTriggersFired()
IDeploymentConfighaveTriggersFired in interface IDeploymentConfigpublic boolean didImageTrigger(String imageNameTag)
IDeploymentConfigdidImageTrigger in interface IDeploymentConfigimageNameTag - the image name:tag associated with an image triggerpublic String getImageHexIDForImageNameAndTag(String imageNameTag)
IDeploymentConfiggetImageHexIDForImageNameAndTag in interface IDeploymentConfigimageNameTag - the image name:tag associated with an image triggerpublic String getImageNameAndTagForTriggeredDeployment()
IDeploymentConfiggetImageNameAndTagForTriggeredDeployment in interface IDeploymentConfigCopyright © 2020 Red Hat, Inc. All Rights Reserved.