FIX: Allow builds to reconcile even if the secret doesn't have build.shipwright.io/referenced.secret=true annotation #2175
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
update build selection logic Signed-off-by: karthik balasubramanian <karthikbalasubramanian08@gmail.com>
…use secrets without annotations Signed-off-by: karthik balasubramanian <karthikbalasubramanian08@gmail.com>
… context Signed-off-by: karthik balasubramanian <karthikbalasubramanian08@gmail.com>
Signed-off-by: karthik balasubramanian <karthikbalasubramanian08@gmail.com>
cee2810 to
5b1350f
Compare
IrvingMg
left a comment
There was a problem hiding this comment.
I haven’t looked at the code in detail yet, but from the description it seems that this PR not only fixes the bug, but also makes the annotation no longer useful.
I’m not sure if this should be considered an API change, but it feels a bit aggressive since it changes behavior while fixing the bug.
Maybe it would be better to first focus only on the bug fix, and handle the annotation change separately. What do you think?
That said, I don’t have a strong opinion, so it would be good to get feedback from others.
Changes
build.shipwright.io/referenced.secret=trueannotationSecretWithoutAnnotationEdit:
flagReconcilewas declared outside the loop and is never reset to false, once a build is referenced by the secret causing all subsequent builds to be falsely queued. updated that as well.tested it in my local kind cluster
once the secret is created build automatically reconciles and unregistered build now registers successfully.
Related Issue
Fixes #1725
Type of PR
/kind cleanup
/kind documentation
Submitter Checklist
Release Notes