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

Add support for gcp uploads #1744

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Add support for gcp uploads #1744

merged 2 commits into from
Jan 31, 2023

Conversation

jkozol
Copy link
Collaborator

@jkozol jkozol commented Jan 24, 2023

No description provided.

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

Thanks a lot for implementing the support for GCE images!

Looks good from my PoV to the extent to which I can read JavaScript 😅

I think that the object does not need to be provided by the user. My bad, I should have updated the guides... Alternatively it can be made optional, instead of being completely removed...

One additional comment WRT the credentials file, which may be good to discuss with UX. My hope was that the user would just provide credentials as downloaded from GCP in the JSON format and cockpit-composer would encode the content of the file as Base64 before calling Weldr API. I think that it would simplify the user experience by not requiring the user to do additional step (encoding the file in base64). Now it looks as if the user has to first download JSON file with credentials from GCP, encode the file content in base64 and save it as a file and lastly upload that encoded file to cockpit-composer.

src/components/Wizard/CreateImageWizard.js Outdated Show resolved Hide resolved
src/forms/steps/gcp.js Outdated Show resolved Hide resolved
src/constants.js Outdated Show resolved Hide resolved
@jkozol
Copy link
Collaborator Author

jkozol commented Jan 30, 2023

@thozza Cockpit composer now expects the plain json file and will encode it before passing to osbuild-composer.

The firewall configuration now defaults to an empty object. This
prevents old blueprints from erroring when they have no firewall
declared.
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

LGTM!

Not approving, since someone knowledgeable in JS should review as well and approve...

GCE images can now be created and uploaded to gcp. This adds new upload
fields for the Storage region, Bucket, Object key, and Credentials. The
credentials should be a file upload.

This is all only on RHEL.
@jkozol jkozol merged commit 95f97d2 into osbuild:main Jan 31, 2023
@jkozol jkozol deleted the gcp branch January 31, 2023 16:07
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