-
Notifications
You must be signed in to change notification settings - Fork 202
[wip] AGENT-611 Add support for unconfigured ignition #1531
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,9 +23,28 @@ function create_pxe_files() { | |
| function create_image() { | ||
| local asset_dir=${1} | ||
| local openshift_install=${2} | ||
|
|
||
| if [ "${AGENT_USE_APPLIANCE_MODEL}" == true ]; then | ||
| create_factory_image | ||
| else | ||
| create_automated_image | ||
| fi | ||
| } | ||
|
|
||
| function create_automated_image() { | ||
| "${openshift_install}" --dir="${asset_dir}" --log-level=debug agent create image | ||
| } | ||
|
|
||
| function create_factory_image() { | ||
| "${openshift_install}" --dir="${asset_dir}" --log-level=debug agent create cluster-manifests | ||
| "${openshift_install}" --dir="${asset_dir}" --log-level=debug agent create unconfigured-ignition | ||
| oc adm release info --image-for=machine-os-images --insecure=true $OPENSHIFT_RELEASE_IMAGE | ||
| base_iso_url=$(oc adm release info --image-for=machine-os-images --insecure=true $OPENSHIFT_RELEASE_IMAGE) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: more than a |
||
| oc image extract --path /coreos/coreos-x86_64.iso:$HOME/.cache/agent/image_cache --confirm $base_iso_url | ||
| local agent_iso_abs_path="$(realpath "${OCP_DIR}")" | ||
| podman run --privileged --rm -v /run/udev:/run/udev -v "${agent_iso_abs_path}:${agent_iso_abs_path}" -v "$HOME/.cache/agent/image_cache/:$HOME/.cache/agent/image_cache/" quay.io/coreos/coreos-installer:release iso ignition embed -f -i "${agent_iso_abs_path}/unconfigured-agent.ign" -o "${agent_iso_abs_path}/agent.iso" $HOME/.cache/agent/image_cache/coreos-x86_64.iso | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure I'm missing something, but how are we going to test/exercise this new mode? I suppose that maybe another set of changes/PR will follow up, to implement the full workflow?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I should have marked this wip. Bob has taken this PR and added the entire workflow here #1533. Will close this one. |
||
|
|
||
| function attach_agent_iso() { | ||
|
|
||
| # This is required to allow qemu opening the disk image | ||
|
|
||
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.
This looks like a typo?