-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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-972, AGENT-973: Agent minimal ISO support for all platforms #9056
AGENT-972, AGENT-973: Agent minimal ISO support for all platforms #9056
Conversation
@bfournie: This pull request references AGENT-972 which is a valid jira issue. This pull request references AGENT-973 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 openshift-eng/jira-lifecycle-plugin repository. |
305db9a
to
5ae1345
Compare
cmd/openshift-install/agent.go
Outdated
@@ -129,6 +133,9 @@ func newAgentCreateCmd(ctx context.Context) *cobra.Command { | |||
for _, t := range agentTargets { | |||
t.command.Args = cobra.ExactArgs(0) | |||
t.command.Run = runTargetCmd(ctx, t.assets...) | |||
if t.name == "Agent ISO Image" { | |||
t.command.PersistentFlags().BoolVar(&agentImageMinimalISO, "minimal-iso", false, "generates a minimal ISO image, by default a full ISO will be generated.") |
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.
I'm inclined to think this should be a flag in the agent-config instead of a CLI option. The reason to use a minimal ISO is that some hardware requires it, so that config should travel along with the hardware configuration, rather than being something the user has to remember to do at runtime.
I originally imagined we would trigger this off the presence of the bootArtifactsBaseURL
, but I guess there is a use case for a connected cluster using a minimal ISO where we want to just use the mirror URL.
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.
That seems a fair point to me (let the config travel along witht hw config) for this specific case, it could be worth to be explored
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.
Reworked to use MinimalISO configuration from agent-config.yaml instead of command line flag.
2571b99
to
24e00da
Compare
/cc @pawanpinjarkar @rwsu |
The initial changes look good. |
24e00da
to
99db118
Compare
2037bd7
to
350a052
Compare
/retest |
@bfournie: This pull request references AGENT-972 which is a valid jira issue. This pull request references AGENT-973 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 openshift-eng/jira-lifecycle-plugin repository. |
cmd/openshift-install/testdata/agent/agentconfigtemplate/agent-config-template.txt
Show resolved
Hide resolved
Add the ability to enable minimal ISO support for all platform types, not just External. Adds a new flag to the 'agent create image' command. Still WIP as dev-scripts testing needs to be done and integration tests added.
350a052
to
3d4734f
Compare
/lgtm |
/retest |
@bfournie: The following tests failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pawanpinjarkar 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 |
b5438be
into
openshift:master
Add the ability to enable minimal ISO support for all platform types, not just External. Adds a new flag to the 'agent create image' command.