Skip to content
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

fix: only update deployment fields if they are provided by remote-controller #3449

Merged
merged 2 commits into from
May 26, 2023

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented May 25, 2023

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

Minor fix that will only update the remoteid of a deployment if it is provided. In most cases the remote-controller will send this. But if an old build is cancelled, it can't determine the remoteid (because the pod or the build resource may have been deleted from the cluster a long time ago) so it doesn't provide the remoteid

This remoteid is used by the logs retrieval, and when a long time removed build is cancelled via the ui/api, it removes the remoteid which makes the logs inaccessible.

There is no reason to continually update the remoteid of a deployment once it has been set by the build.

@shreddedbacon shreddedbacon changed the title fix: only update the remoteid if it is provided fix: only update deployment remoteid if it is provided by remote-controller May 25, 2023
@shreddedbacon shreddedbacon changed the title fix: only update deployment remoteid if it is provided by remote-controller fix: only update deployment fields if they are provided by remote-controller May 25, 2023
@shreddedbacon shreddedbacon marked this pull request as ready for review May 25, 2023 03:13
@shreddedbacon shreddedbacon requested a review from bomoko May 25, 2023 05:53
Copy link
Contributor

@bomoko bomoko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shipit

@tobybellwood tobybellwood merged commit fd0c83f into main May 26, 2023
@tobybellwood tobybellwood deleted the fix-remoteid-patch branch May 26, 2023 04:44
@tobybellwood tobybellwood modified the milestones: 2.16.x, 2.15.1 Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants