Skip to content

fix(install): keep a single instance of runtime config within the API context #2263

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

Closed
wants to merge 2 commits into from

Conversation

JGAntunes
Copy link
Member

@JGAntunes JGAntunes commented Jun 9, 2025

What this PR does / why we need it:

This PR addresses something that came up once I rebased - #2226
See the failure:

This failure is a consequence of how we're currently passing around the runtime config between controller, managers, etc. This doesn't surface in production because we let the install controller instantiate everything, however I'm worried we might run into this in the future with the way we have our structs wired up. The idea here is that instead of keeping a runtime config property in multiple places that can lead to a disconnect between which instance is being used, we keep one copy of it at the controller level and pass it around to all the manager methods when they need it. We could eventually look into either keeping the runtime config in a specific manager (Installation?) or creating its dedicated manager (overkill?) but I believe that for now this should suffice.

Which issue(s) this PR fixes:

Does this PR require a test?

Updated

Does this PR require a release note?

NONE

Does this PR require documentation?

NONE

Copy link

github-actions bot commented Jun 9, 2025

This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID.

Online Installer:

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci/appver-dev-4c037ff" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Airgap Installer (may take a few minutes before the airgap bundle is built):

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci-airgap/appver-dev-4c037ff?airgap=true" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Happy debugging!

@JGAntunes JGAntunes marked this pull request as ready for review June 9, 2025 15:43
@JGAntunes JGAntunes requested a review from sgalsaleh June 9, 2025 15:48
@JGAntunes
Copy link
Member Author

Opted for parking this for now until we get a bit more clarity in terms of how we want to use runtimeconfig and how that ties down with InstallationConfig

@JGAntunes JGAntunes closed this Jun 9, 2025
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.

1 participant