For applications deployed by using a container image, you can set triggers on the deployment of the application by using the following command:
[user@host ~]$ oc set trigger deployment/name
There is no oc set trigger command, should it be oc set triggers?
In addition, oc set triggers deployment/name only prints the deployment trigger configuration. If we want to set a trigger, some other parameters are required.
Hi,
I searched for a section 4.5 but could not find it. So difficult to answer your question.
Have you tried to use 'oc set triggers --help' for explanations?
And have a look at
https://access.redhat.com/documentation/en-us/openshift_container_platform/4.15/html-single/cli_tool...
regards
Huub
sorry, DO288 v4.14 ch04s05 Triggering Builds
That command 'oc set trigger deployment/name' should indeed be 'oc set triggers deployment/name'.
The sample in the document is missing a 's'.
'oc set triggers RESOURCE/NAME'
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.