public class DeploymentTrigger extends AbstractCapability implements IDeploymentTriggerable
| Constructor and Description |
|---|
DeploymentTrigger(IDeploymentConfig resource,
IClient client,
ITypeFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Well known name of the capability
|
String |
getResourceName()
Returns the name of the deployment config seeded into the deployment request
|
boolean |
isForce()
Returns the latest setting of the force flag.
|
boolean |
isLatest()
Returns the current setting of the latest flag.
|
boolean |
isSupported()
Allow the implementation of the capability to determine if it is supported on
the OpenShift server.
|
void |
setForce(boolean force)
If set to try force will try to force a new deployment to run.
|
void |
setLatest(boolean latest)
If set the true latest will update the deployment config with the latest state from all triggers.
|
void |
setResourceName(String name)
The name of the deployment config; note, the name in the corresponding oapi type
is not in the k8s metadata object
|
IDeploymentConfig |
trigger()
Trigger a deployment based on a deployment config
|
public DeploymentTrigger(IDeploymentConfig resource, IClient client, ITypeFactory factory)
public String getName()
ICapabilitygetName in interface ICapabilitypublic boolean isSupported()
ICapabilityisSupported in interface ICapabilityisSupported in class AbstractCapabilitypublic IDeploymentConfig trigger()
IDeploymentTriggerabletrigger in interface IDeploymentTriggerablepublic void setLatest(boolean latest)
IDeploymentTriggerablesetLatest in interface IDeploymentTriggerablepublic boolean isLatest()
IDeploymentTriggerableisLatest in interface IDeploymentTriggerablepublic void setForce(boolean force)
IDeploymentTriggerablesetForce in interface IDeploymentTriggerablepublic boolean isForce()
IDeploymentTriggerableisForce in interface IDeploymentTriggerablepublic void setResourceName(String name)
IDeploymentTriggerablesetResourceName in interface IDeploymentTriggerablename - of the deployment configpublic String getResourceName()
IDeploymentTriggerablegetResourceName in interface IDeploymentTriggerableCopyright © 2020 Red Hat, Inc. All Rights Reserved.