-
Notifications
You must be signed in to change notification settings - Fork 98
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
✨ state api sdk #262
Merged
✨ state api sdk #262
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for kairos-io canceled.
|
This is related to #34. Starts to unify the API to retrieve the state in the sdk to have a common place to query system status information.
mudler
force-pushed
the
stateapi
branch
2 times, most recently
from
October 23, 2022 16:43
0f281a7
to
662a250
Compare
santhoshdaivajna
pushed a commit
to santhoshdaivajna/kairos
that referenced
this pull request
Oct 24, 2022
* ✨ Add state api This is related to kairos-io#34. Starts to unify the API to retrieve the state in the sdk to have a common place to query system status information. * 🤖 Add test * Update go.mod * ⚙️ Fine-tune detection of partitions * 🤖 Add more fine-grained tests * 🎨 Add /dev/ to partition name * 🤖 Fixup tests * ⚙️ Remount accessors * ✨ Add state partition to cloud-init paths * 📝 Upper case Kairos in motd * 🎨 Add mounts sdk * 🎨 Set grub options via SDK * 🎨 Make it more idiomatic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
This PR introduce an SDK API to retrieve system runtime status. Besides, exposes it via CLI enabling programmatically use inside cloud-configs, system services, etc. It also adds the capability to read cloud configs in the state partition.
How it works:
The agent now has a
state
subcommand, which can be used to print the system state, and retrieve informations for it by querying it.Besides, starts to lay down first blocks to an sdk to apply system-wide changes during runtime.
Relates to #34