Skip to content

Constructor dependency injection#44

Merged
FluxCapacitor2 merged 13 commits into
mainfrom
constructor-dependency-injection
Apr 18, 2026
Merged

Constructor dependency injection#44
FluxCapacitor2 merged 13 commits into
mainfrom
constructor-dependency-injection

Conversation

@FluxCapacitor2
Copy link
Copy Markdown
Collaborator

This PR moves service functions into their own classes. Each class accepts its dependencies as constructor parameters and stores them as properties, which will make the system easier to test by providing mock dependencies that don't need to interact with external systems.

This PR does not address iffy boundaries and tight connections between services. They existed before and still do, but this PR may make them easier to see.

There should be no differences in functionality before vs. after this PR is merged. These are purely structural changes.

@FluxCapacitor2
Copy link
Copy Markdown
Collaborator Author

I've deployed this to staging and everything appears to work as expected. @skkra0 Can you test authentication with your local Rancher setup to make sure I didn't break it?

@skkra0
Copy link
Copy Markdown
Collaborator

skkra0 commented Apr 17, 2026

It works with local Rancher OIDC. If it works on staging then should be good to merge

@FluxCapacitor2 FluxCapacitor2 merged commit 2dafa30 into main Apr 18, 2026
@FluxCapacitor2 FluxCapacitor2 deleted the constructor-dependency-injection branch April 18, 2026 22:41
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