Skip to content

Use pkg/recutil in rollback controller#445

Merged
IsaacJames merged 3 commits into
pre-release-5.1.0from
CI-3637-rollback-controller-use-recutil
Jan 21, 2026
Merged

Use pkg/recutil in rollback controller#445
IsaacJames merged 3 commits into
pre-release-5.1.0from
CI-3637-rollback-controller-use-recutil

Conversation

@IsaacJames

@IsaacJames IsaacJames commented Jan 21, 2026

Copy link
Copy Markdown

When we were implementing the release-controller we noticed that we weren't making full use of the recutil package and subsequently refactored the reconcile loop (here). In this PR we're going back and refactoring the rollback controller in the same way to use the recutil.CreateOrUpdate wrapper.

Note, we also discovered the Kubernetes event emitting functionality built into the logger package (https://github.com/gocardless/theatre/blob/master/pkg/logging/recorded.go). This PR also adds the event key to rollback log statements to make use of this.

@IsaacJames
IsaacJames force-pushed the CI-3637-rollback-controller-use-recutil branch from ab56fcf to 9d867e4 Compare January 21, 2026 15:21
@IsaacJames
IsaacJames requested a review from goelozev January 21, 2026 15:45
@IsaacJames
IsaacJames marked this pull request as ready for review January 21, 2026 15:46
@IsaacJames
IsaacJames marked this pull request as draft January 21, 2026 15:47
@IsaacJames
IsaacJames marked this pull request as ready for review January 21, 2026 16:09

@goelozev goelozev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

@IsaacJames
IsaacJames merged commit a65476a into pre-release-5.1.0 Jan 21, 2026
13 checks passed
@IsaacJames
IsaacJames deleted the CI-3637-rollback-controller-use-recutil branch January 21, 2026 17:24
0x0013 pushed a commit that referenced this pull request Jan 29, 2026
0x0013 pushed a commit that referenced this pull request Mar 13, 2026
0x0013 pushed a commit that referenced this pull request Mar 16, 2026
goelozev pushed a commit that referenced this pull request Apr 15, 2026
goelozev pushed a commit that referenced this pull request Apr 15, 2026
goelozev pushed a commit that referenced this pull request Apr 15, 2026
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.

2 participants