Which command demonstrates removing a config trigger from 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 demonstrates removing a config trigger from a deployment config?

Explanation:
Removing a config-trigger from a deployment config is done by using the oc set triggers command with the --remove flag, paired with --from-config to indicate the type of trigger being removed. Target the specific deployment config (for example, the one named mysql) and include both options so the CLI knows you want to eliminate triggers that were created from a config source. This exact combination removes those config-based triggers, stopping automatic redeploys when the associated config changes. Other variants fail because they either try to set or add triggers instead of removing, or they omit the --remove flag, which means no removal would occur.

Removing a config-trigger from a deployment config is done by using the oc set triggers command with the --remove flag, paired with --from-config to indicate the type of trigger being removed. Target the specific deployment config (for example, the one named mysql) and include both options so the CLI knows you want to eliminate triggers that were created from a config source. This exact combination removes those config-based triggers, stopping automatic redeploys when the associated config changes.

Other variants fail because they either try to set or add triggers instead of removing, or they omit the --remove flag, which means no removal would occur.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy