-
Notifications
You must be signed in to change notification settings - Fork 6
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
Determine whether initcontainer is needed through IPAConfig options #45
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @matthewei. Thanks for your PR. I'm waiting for a metal3-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
cfcfb45
to
f06187d
Compare
@dhellmann Hi , Could you have a look my code. |
api/v1alpha1/ironic_types.go
Outdated
@@ -124,7 +124,8 @@ type Networking struct { | |||
MACAddresses []string `json:"macAddresses,omitempty"` | |||
} | |||
|
|||
type Images struct { | |||
type IPAConfig struct { |
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'd rather keep the Images structure intact, especially since what you're adding is not an "IPA config", nor are you "enabling IPA". IPA is pretty much required for Ironic, you're enabling/disabling its downloader.
Let's just add disableRamdiskDownloader as a top-level option? (disable instead of enable so that it can default to false).
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.
OK, I will modify my code.
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.
@dtantsur Is it ok?
Signed-off-by: shenwei <[email protected]>
f06187d
to
aafcfe0
Compare
// DisableRamdiskDownloader turns off the ramdisk downloader. | ||
// +kubebuilder:default=false | ||
// +optional | ||
DisableRamdiskDownloader bool `json:"disableRamdiskDownloader,omitempty"` |
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 should not be part of Images, especially since the Images structure in its current form will be gone.
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.
OK, I would like to refactor my code.
PR needs rebase. 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. |
Some times we can build a http server out of cluster and we can also ues it to be as a image-server. And we can upload kernal and ramdisk into it. So I think we may don't need the init-Pod in Ironic's Pod.
I have modified the Ironic CRD