Which command uses the plural form 'triggers' to modify a deployment config?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which command uses the plural form 'triggers' to modify a deployment config?

Explanation:
In OpenShift, managing what automatically triggers a new deployment is done with the set triggers command. The plural form triggers is the correct subcommand for adjusting a resource’s deployment triggers, including DeploymentConfigs. Here, the resource is the deployment config named mysql (dc/mysql). The flag from-config specifies a trigger based on the configuration, and the remove flag tells OpenShift to delete that trigger. So the command oc set triggers dc/mysql --from-config --remove correctly targets the deployment config and removes its config-based trigger. The other options aren’t correct because they use a non-existent singular subcommand or omit the removal action, which is what the question asks to perform.

In OpenShift, managing what automatically triggers a new deployment is done with the set triggers command. The plural form triggers is the correct subcommand for adjusting a resource’s deployment triggers, including DeploymentConfigs. Here, the resource is the deployment config named mysql (dc/mysql). The flag from-config specifies a trigger based on the configuration, and the remove flag tells OpenShift to delete that trigger. So the command oc set triggers dc/mysql --from-config --remove correctly targets the deployment config and removes its config-based trigger. The other options aren’t correct because they use a non-existent singular subcommand or omit the removal action, which is what the question asks to perform.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy