cancel
Showing results for 
Search instead for 
Did you mean: 
Houwang
Mission Specialist
Mission Specialist
  • 894 Views

Section 4.5 Is there an error in the command?

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.

3 Replies
Huub
Mission Specialist
Mission Specialist
  • 787 Views

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

 

 

Houwang
Mission Specialist
Mission Specialist
  • 737 Views

sorry, DO288 v4.14 ch04s05  Triggering Builds

wechat_2024-06-11_095835_369.png

0 Kudos
Huub
Mission Specialist
Mission Specialist
  • 723 Views

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'

 

 

Join the discussion
You must log in to join this conversation.