Which command adds an image trigger to a build configuration from a specific image tag?

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 command adds an image trigger to a build configuration from a specific image tag?

Explanation:
Adding an image change trigger to a BuildConfig so builds start automatically when a referenced image tag updates is what this command does. Running oc set triggers bc/name --from-image=project/image:tag attaches an image change trigger to the BuildConfig named name that watches the image stream tag project/image:tag. When a new image is pushed for that tag, OpenShift detects the change and automatically initiates a new build for the BuildConfig. This is different from changing environment variables (which only alters build behavior), linking a secret to the builder (which provides credentials, not triggering), or patching a DeploymentConfig for a service account (which affects deployment, not build triggering).

Adding an image change trigger to a BuildConfig so builds start automatically when a referenced image tag updates is what this command does. Running oc set triggers bc/name --from-image=project/image:tag attaches an image change trigger to the BuildConfig named name that watches the image stream tag project/image:tag. When a new image is pushed for that tag, OpenShift detects the change and automatically initiates a new build for the BuildConfig. This is different from changing environment variables (which only alters build behavior), linking a secret to the builder (which provides credentials, not triggering), or patching a DeploymentConfig for a service account (which affects deployment, not build triggering).

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy