-
Notifications
You must be signed in to change notification settings - Fork 53
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: cockpit create image wizard (HMS-5301) #2735
Conversation
d2a1b9f
to
aea2b03
Compare
This depends on #2704 |
d5adf33
to
1c6e08c
Compare
Marking as draft as this also depends on #2739 |
afa0ced
to
ba3bf8a
Compare
cb3d3e8
to
9b58183
Compare
9b58183
to
76a353c
Compare
Screen.Recording.2025-01-23.at.16.08.09.movThis doesn't include:
|
76a353c
to
bc016ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some small comments, but I'd leave out the logos/icons for now, I'm not sure if we can just do that :/
src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx
Outdated
Show resolved
Hide resolved
The browser router doesn't seem to work inside cockpit, switching to the hashrouter resolves this.
Switch the useFlag usage to the stub function defined in the `useGetEnvironment` utility
We need to check for the on-prem use case
7b39b18
to
5135443
Compare
/retest |
Just a heads up - failure of the two bonfire konflux actions is expected and should be safe to ignore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, some repos are still there though
smh. Sorry. Just going to fix that up quickly |
We were making a call to a dead endpoint to get the architectures. Instead, create a custom query function to return the list of architectures and image types.
Create a get blueprint endpoint for the on-prem store.
Create the boilerplate function for getting the Oscap profiles. We will need to make a call to the `oscap` binary to get this information. So we will leave it empty for now.
Create a helper hook for RTK prefetch queries. This wrapper function is needed since the imagebuilderApi and cockpitApi aren't at parity yet.
Currently, the wizard still needs some of the other stores. If we omit them, the wizard fails to launch
For a start, we will disable custom repositories and the OpenSCAP steps for the on-prem version of the frontend.
Subject says it all
Add a stub function for the `os-release` package from cockpit.
Initialize the create image wizard with the host's distribution for the on-premise frontend.
Initialize the create image wizard with the host arch for the on-prem frontend.
The list of imports was growing really long and getting a bit unmanageable. This commit tidies the imports up by importing all the queries into two variables.
5135443
to
12606ed
Compare
This PR adds some changes for us to open the create image wizard for on-prem:
/jira-epic COMPOSER-2411
JIRA: HMS-5301