public interface IDeploymentConfig extends IReplicationController
DEPLOYMENT_PHASE| 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
|
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, setVolumesaddLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonCollection<String> getTriggerTypes()
Collection<IDeploymentTrigger> getTriggers()
String getDeploymentStrategyType()
IDeploymentTrigger addTrigger(String type)
int getLatestVersionNumber()
void setLatestVersionNumber(int newVersionNumber)
new - version numberboolean haveTriggersFired()
boolean didImageTrigger(String imageNameTag)
imageNameTag - the image name:tag associated with an image triggerString getImageHexIDForImageNameAndTag(String imageNameTag)
imageNameTag - the image name:tag associated with an image triggerString getImageNameAndTagForTriggeredDeployment()
Copyright © 2019 Red Hat, Inc. All Rights Reserved.