Which OpenShift command disables image change triggers on a DeploymentConfig named myapp?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

Which OpenShift command disables image change triggers on a DeploymentConfig named myapp?

Explanation:
Managing DeploymentConfig triggers is about controlling automatic redeployments when images or config change. An image change trigger watches an ImageStreamTag, so removing that specific trigger without touching others lets you disable image updates while keeping any configuration-change behavior intact. The command oc set triggers dc/myapp --from-config --remove targets and removes only the image-change trigger sourced from the image stream configuration, leaving other triggers (like a ConfigChange trigger) in place. The other options either remove all triggers or modify the object in a broader way, which isn’t as precise.

Managing DeploymentConfig triggers is about controlling automatic redeployments when images or config change. An image change trigger watches an ImageStreamTag, so removing that specific trigger without touching others lets you disable image updates while keeping any configuration-change behavior intact. The command oc set triggers dc/myapp --from-config --remove targets and removes only the image-change trigger sourced from the image stream configuration, leaving other triggers (like a ConfigChange trigger) in place. The other options either remove all triggers or modify the object in a broader way, which isn’t as precise.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy