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

scheduler: fix panic in render_templates destructive update check #18100

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

tgross
Copy link
Member

@tgross tgross commented Jul 31, 2023

In #18054 we introduced a new field render_templates in the restart block. Previously changes to the restart block were always non-destructive in the scheduler but we now need to check the new field so that we can update the template runner. The check assumed that the block was always non-nil, which causes panics in our scheduler tests.

No changelog entry as this was never shipped.
Will be backported to 1.6.x

In #18054 we introduced a new field `render_templates` in the `restart`
block. Previously changes to the `restart` block were always non-destructive in
the scheduler but we now need to check the new field so that we can update the
template runner. The check assumed that the block was always non-nil, which
causes panics in our scheduler tests.
@tgross tgross force-pushed the render-templates-updates-diff branch from 1468413 to 96544f5 Compare July 31, 2023 14:29
@tgross tgross marked this pull request as ready for review July 31, 2023 15:00
@tgross tgross removed the backport/1.6.x backport to 1.6.x release line label Jul 31, 2023
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM!

@tgross tgross merged commit 1ef8ad8 into main Jul 31, 2023
25 checks passed
@tgross tgross deleted the render-templates-updates-diff branch July 31, 2023 15:52
tgross added a commit that referenced this pull request Jul 31, 2023
…18100)

In #18054 we introduced a new field `render_templates` in the `restart`
block. Previously changes to the `restart` block were always non-destructive in
the scheduler but we now need to check the new field so that we can update the
template runner. The check assumed that the block was always non-nil, which
causes panics in our scheduler tests.
@tgross
Copy link
Member Author

tgross commented Jul 31, 2023

Backported to 1.6.x.

@schmichael
Copy link
Member

Oh no, good catch Tim. Sorry for missing that in review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants