Skip to content

Commit ac63c13

Browse files
authored
Merge pull request openshift#2150 from kargakis/deployment-triggers-doc
Information about deployment triggers
2 parents 580beb7 + af3c48f commit ac63c13

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

dev_guide/deployments.adoc

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,18 @@ failed and has not been manually deleted or pruned).
218218
== Triggers
219219

220220
A deployment configuration can contain triggers, which drive the creation of
221-
new deployments in response to events, both inside and outside OpenShift.
221+
new deployments in response to events, only inside OpenShift at the moment.
222222

223223
WARNING: If no triggers are defined on a deployment configuration, deployments
224224
must be link:#start-deployment[started manually].
225225

226226
[[config-change-trigger]]
227227
=== Configuration Change Trigger
228228

229-
The ConfigChange trigger results in a new deployment whenever changes are
230-
detected to the replication controller template of the deployment configuration.
229+
The ConfigChange trigger results in a new deployment whenever new changes are
230+
detected in the pod template of the deployment configuration.
231231

232-
NOTE: If a ConfigChange trigger is defined on a deployment configuration,
232+
NOTE: If only a ConfigChange trigger is defined on a deployment configuration,
233233
the first deployment will be automatically created soon after the deployment
234234
configuration itself is created.
235235

@@ -248,7 +248,7 @@ triggers:
248248
=== Image Change Trigger
249249

250250
The ImageChange trigger results in a new deployment whenever the value of an
251-
image stream tag changes.
251+
image stream tag changes either by a build or because it was imported.
252252

253253
The following is an example of an ImageChange trigger:
254254

@@ -270,9 +270,15 @@ triggers:
270270
====
271271

272272
With the above example, when the `latest` tag value of the `origin-ruby-sample`
273-
image stream changes and the new tag value differs from the current image
273+
image stream changes and the new image value differs from the current image
274274
specified in the deployment configuration's `helloworld` container, a new
275-
deployment is created using the new tag value for the `helloworld` container.
275+
deployment is created using the new image for the `helloworld` container.
276+
277+
NOTE: If an ImageChange trigger is defined on a deployment configuration (with
278+
a ConfigChange trigger or with automatic=true) and the ImageStreamTag pointed
279+
by the ImageChange trigger does not exist yet then the first deployment will
280+
automatically start as soon as an image is imported or pushed by a build to the
281+
ImageStreamTag.
276282

277283
[[strategies]]
278284
== Strategies

0 commit comments

Comments
 (0)