Skip to content
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

On-prem: read blueprints from disk #2603

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kingsleyzissou
Copy link
Collaborator

We can use the cockpit files api to read in blueprints from disk.

This PR adds commits to bring in the required dependencies, some convenience scripts and an initial commit using an RTK query function to read blueprints from file and pull the details into the store.

@lucasgarfield
Copy link
Collaborator

I can't wait to see this in action! I'm trying to get it running locally but can't get anything to appear in Cockpit. I noticed quite a few changes to the makefile... what should I do to get this to run?

@kingsleyzissou
Copy link
Collaborator Author

I can't wait to see this in action! I'm trying to get it running locally but can't get anything to appear in Cockpit. I noticed quite a few changes to the makefile... what should I do to get this to run?

Oh right, so we need to pull in some of the cockpit dependencies. Try make cockpit/devel, hopefully that does the trick. I am copying this all into a VM and then running that.

@kingsleyzissou kingsleyzissou force-pushed the cockpit_fileapi branch 3 times, most recently from 83fc2b4 to e2b3cfb Compare November 28, 2024 13:01
The on-prem version of this repo depends on the `Cockpit` project. Some
of the files from the `Cockpit` repo are needed to build and run this
project. These files are saved into the `pkg/lib` directory, so we need
ot add some plumbing for this into the project.

Additionally, this commit adds some convenience scripts to the Makefile.
We need a toml package to parse the blueprint files, this appears to be
the most maintained package.
Add an initial commit to scan a preset directory for user blueprint
files. This makes use of the cockpit files api.
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