remove convenience methods from BareMetalHost#741
remove convenience methods from BareMetalHost#741metal3-io-bot merged 3 commits intometal3-io:masterfrom
Conversation
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhellmann, zaneb The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test-integration |
|
@dhellmann I am assuming that this PR should be merged as related metal3-io/cluster-api-provider-metal3#150 is merged already. Some one needs to trigger |
Yes, it should be safe to merge this now. /test-integration |
It is up to the consumer, not the host, to decide when a host is ready to have provisioning instructions added. The checks in the Available() method will be inlined in cluster-api-provider-metal3. Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
Use the API field directly instead of the convenience method. Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
60f4610 to
dfa6cf4
Compare
|
Rebased /test-integration |
Move public methods of the host type to private functions in the controller package. Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
dfa6cf4 to
b0c8c58
Compare
|
@dhellmann I am curious, why not just make those methods unexported? |
|
/test-integration |
If they were private to the package where they are defined, then the controller couldn't call them. |
|
@dhellmann Thanks, forgot about that controller is different package, sorry. @zaneb Safe to merge. |
|
/lgtm |
It is up to the consumer, not the host, to decide when a host is ready
to have provisioning instructions added. The checks in the Available()
method will be inlined in cluster-api-provider-metal3.
Similarly, the host.Status.ErrorMessage field is the API for determining if a host has an error, so remove HasError().