You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set the state annotation and labels in pipelineascode only after
the state was reported to the SCM.
This is achieved by patching the PLR with the state label/annotation
after it was created.
This change is needed in order to avoid a case where the watcher will report
a status before PAC.
With this change the issue can't happen, since the watcher only reconciles
PLRs that has the state annotation, so the first reconcile of the PLRs
will happen only after PAC already sent the initial status to the SCM.
In addition, simplify the condition which checks if the "queued" state
annotation/label should be set. We can only check if the PLR is pending,
it doesn't matter if the reason is because of PAC's concurrency control
or an external controller.
Signed-off-by: Gal Ben Haim <[email protected]>
0 commit comments