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: force new when the csr changes #583

Merged
merged 1 commit into from
Nov 18, 2024
Merged

fix: force new when the csr changes #583

merged 1 commit into from
Nov 18, 2024

Conversation

Apollorion
Copy link
Member

It looks like theres no way to update the CSR after the workerpool has been created. We only set this value on create. We should force new resources if this value was to change. Its only comparing the CSR to state, so if someone was to update this today they'd think they made a change when they really didnt.

@Apollorion Apollorion requested a review from a team November 13, 2024 22:09
Copy link
Member

@eliecharra eliecharra left a comment

Choose a reason for hiding this comment

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

Good catch, thanks @Apollorion
Can you also update spacelift/resource_worker_pool_test.go to cover this new behavior with a test?

@Apollorion Apollorion force-pushed the recreate-workerpool branch 2 times, most recently from ed60d53 to 293afa5 Compare November 15, 2024 21:33
@eliecharra eliecharra requested a review from a team November 18, 2024 09:14
@Apollorion Apollorion merged commit 427f085 into main Nov 18, 2024
7 checks passed
@Apollorion Apollorion deleted the recreate-workerpool branch November 18, 2024 14:01
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.

3 participants