Skip to content

[APP-7099] [APP-7209] Integrate subsystems and use new configuration proto/format#59

Merged
Otterverse merged 13 commits intomainfrom
new-config
Feb 20, 2025
Merged

[APP-7099] [APP-7209] Integrate subsystems and use new configuration proto/format#59
Otterverse merged 13 commits intomainfrom
new-config

Conversation

@Otterverse
Copy link
Contributor

@Otterverse Otterverse commented Jan 27, 2025

I believe this is ready for final review/QA.

RC2 binaries are built and published for testing. See document below.

https://docs.google.com/document/d/12rDyo3tPkxUllVc-IQ9SzqiqEAzd2mSuUBxkG11Kq-s/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was mostly just part of the rename from provsioning>networking... not sure why it decided ONLY this file was new. Practically zero actual changes in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is new, and centralizes ALL config processing and validation, including from viam-defaults.json, cloud, and CLI args.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for handling the old "viam-provisioning.json" for backwards compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another large chunk of what's important. This centralizes (and simplifies) all the version tracking and binary update code in one object.

@Otterverse Otterverse marked this pull request as ready for review February 18, 2025 22:56
@Otterverse Otterverse requested a review from ale7714 February 18, 2025 22:56
}
}

if shouldReboot && w.doReboot(ctx) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This and below are a few changes for the reboot functionality. Everything else in this file is just renames of fields/structs/etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ALMOST everything in this file is just renames. The exception is reboot handling (noted with comment) near the bottom.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file was moved with (almost) zero changes (just renames) but github doesn't recognize it properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This used to background a go routine. Has been simplified to run the (very simple) functions as part of Start() itself.

@Otterverse Otterverse merged commit 562b6e7 into main Feb 20, 2025
2 checks passed
@Otterverse Otterverse deleted the new-config branch February 20, 2025 16:53
@atlassian
Copy link

atlassian bot commented Sep 22, 2025

🔗 Link your GitHub account to Atlassian

To enable Code Reviewer, please link your GitHub account to your Atlassian account.

Click here to connect your accounts

This is a one-time setup that takes less than a minute.

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