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
AGENT-498: Get iPXE script template kernel parameters from ISO #7150
AGENT-498: Get iPXE script template kernel parameters from ISO #7150
Conversation
@pawanpinjarkar: This pull request references AGENT-498 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/hold cancel |
8db37d2
to
0c4bb59
Compare
@pawanpinjarkar: This pull request references AGENT-498 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
ac16e92
to
5b274f1
Compare
@pawanpinjarkar: This pull request references AGENT-498 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
5b274f1
to
5528e50
Compare
c305e1a
to
0af2d1f
Compare
/lgtm |
/test e2e-agent-compact-ipv4 |
@@ -97,6 +110,7 @@ func (a *AgentPXEFiles) PersistToFile(directory string) error { | |||
if err != nil { | |||
return err | |||
} | |||
defer fileReader.Close() |
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.
Even though defer
immediately evaluates the statement for the post-poned execution (so that the subsequent reassignment of fileReader
does not impact this Close()
), for the sake of clarify I think it's better to use different var names for the two files opened (in relation to rootfs.img
and vmlinuz
)
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.
Done
@@ -179,3 +194,26 @@ boot | |||
|
|||
return nil | |||
} | |||
|
|||
func getKernelArgs(isoPath, file string) (string, error) { | |||
fileReader, err := isoeditor.GetFileFromISO(isoPath, file) |
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.
Couldn't be retrieved also this one from the tmp path?
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.
Done
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
0af2d1f
to
5459998
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andfasano The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
@pawanpinjarkar: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Read the default kernel args from the
coreos/kargs.json
file from the base isosuch as
ignition.firstboot ignition.platform.id=metal
and add it to the iPXE script.