-
Notifications
You must be signed in to change notification settings - Fork 4.7k
generic image change trigger doesn't reconcile on resource changes #17535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
originates here: #17404 and https://bugzilla.redhat.com/show_bug.cgi?id=1515902 |
@tnozicka your team owns deploymentconfigs. that would include their imagechangetrigger behavior. |
@bparees I though this generic trigger controller is across resources and just injects resolved image into whatever resource that is. |
we got rid of our own (DC) trigger controller in favour of this generic one I believe |
|
@bparees that controller watching image streams / images and updating different resources sounds like you own that controller as it serves as interface for triggering based on image changes? :-) @tnozicka so the problem here is the trigger controller won't re-populate the image field after you change it manually? Why would you change that field manually when it is controlled by the controller? To me that looks like an error case when you patched it by a mistake. In that case |
Yes, it doesn't and I believe it should reconcile the state you declared. Image comes from image stream; if it doesn't overwrite it so the state corresponds to what you've declared.
e.g. It also leaves the DC in bad state and we already have 1 GH issue and 1 BZ for 3.7, my vote is for P1. |
/cc @smarterclayton |
Before, resolution was done by the generic DC trigger controller. It sounds like when that was removed we missed fixing the trigger controller to resolve? Would be helpful to verify behavior before and after trigger controller was removed. Also, surprised we don’t have an e2e test verifying this. |
Was this an actual regression? |
Ie are we sure we are not compatible with how DC have always worked? |
@mfojtik Everything that's triggered by an image change has to contribute its own trigger/reactor, devex is not going to own those triggers/reactors for every resource in openshift. If you can show me the trigger isn't even being invoked when the image changes, i'll consider us owning it, otherwise I don't. |
…-empty-image Automatic merge from submit-queue (batch tested with PRs 17539, 17457). apps: Fix dc triggers reconciliation on image change and do not deploy DCs with empty image Fixes: #17404 Fixes: #17535 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1515902 /cc @mfojtik
If I have a DC with ImageChangeTrigger upon creation it will have the image resolved and rewritten by the controller. But when I manually patch the DC image after to be
""
it won't get reconciled and resolved.I would expect it to reconcile the image value by resolving the trigger.
The text was updated successfully, but these errors were encountered: