Skip to content

Commit 68f54d9

Browse files
authored
Merge pull request #32824 from bparees/imagetrigger
Fix broken imagestream trigger example annotation
2 parents 3191a58 + 792b02e commit 68f54d9

4 files changed

+4
-30
lines changed

modules/images-triggering-updates-imagestream-changes-kubernetes-about.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Value:
1919
"from": {
2020
"kind": "ImageStreamTag", <1>
2121
"name": "example:latest", <2>
22-
"namespace": "myapp", <3>
22+
"namespace": "myapp" <3>
2323
},
24-
"fieldPath": "spec.template.spec.containers[?(@.name='web')].image", <4>
24+
"fieldPath": "spec.template.spec.containers[?(@.name==\"web\")].image", <4>
2525
"paused": "false" <5>
2626
},
2727
...

modules/images-triggering-updates-imagestream-changes-kubernetes-cli.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55

66
[id="images-triggering-updates-imagestream-changes-kubernetes-cli_{context}"]
7-
= Triggering Kubernetes resources manually
7+
= Setting the image trigger on Kubernetes resources
88

9-
You can manually trigger Kubernetes resources by entering the `oc set triggers` command.
10-
11-
When adding an image trigger to deployments, you can use the `oc set triggers` command. For example, the example command in this procedure adds an image change trigger to the deployment named `example` so that when the `example:latest` image stream tag is updated, the `web` container inside the deployment updates with the new image value.
9+
When adding an image trigger to deployments, you can use the `oc set triggers` command. For example, the sample command in this procedure adds an image change trigger to the deployment named `example` so that when the `example:latest` image stream tag is updated, the `web` container inside the deployment updates with the new image value. This command sets the correct `image.openshift.io/triggers` annotation on the deployment resource.
1210

1311
.Procedure
1412

modules/images-triggering-updates-imagestream-changes-kubernetes.adoc

Lines changed: 0 additions & 22 deletions
This file was deleted.

openshift_images/triggering-updates-on-imagestream-changes.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ When an image stream tag is updated to point to a new image, {product-title} can
1515

1616
include::modules/images-triggering-updates-imagestream-changes-kubernetes-about.adoc[leveloffset=+1]
1717

18-
include::modules/images-triggering-updates-imagestream-changes-kubernetes.adoc[leveloffset=+1]
19-
2018
include::modules/images-triggering-updates-imagestream-changes-kubernetes-cli.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)