-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adding ipmi port to BaseboardManagement type #4
Conversation
Signed-off-by: Aravind Ramalingam <ramaliar@amazon.com>
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.
Thanks! Lets make this an int
@@ -64,6 +64,10 @@ type Connection struct { | |||
// +kubebuilder:validation:MinLength=1 | |||
Host string `json:"host"` | |||
|
|||
// Port is the IPMI port of the BaseboardManagement. |
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.
nit: this could be HTTP/Redfish, can you make this wording generic? Can you state what a default value is, if any?
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 think default would be 623
. I can set a kubebuilder:default
@@ -64,6 +64,10 @@ type Connection struct { | |||
// +kubebuilder:validation:MinLength=1 | |||
Host string `json:"host"` | |||
|
|||
// Port is the IPMI port of the BaseboardManagement. | |||
// +kubebuilder:validation:MinLength=1 | |||
Port string `json:"port"` |
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.
Can this be an Int?
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 kept it as string because bmclib expects port as a string
. But we can change it to int
if that makes more sense 👍
Signed-off-by: Aravind Ramalingam <ramaliar@amazon.com>
Codecov Report
@@ Coverage Diff @@
## main #4 +/- ##
=======================================
Coverage 54.46% 54.46%
=======================================
Files 4 4
Lines 112 112
=======================================
Hits 61 61
Misses 42 42
Partials 9 9
Continue to review full report at Codecov.
|
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.
LGTM
Signed-off-by: Aravind Ramalingam ramaliar@amazon.com
Description
Added Port to
BaseboardManagement.Spec.Connection
. Port represents the IPMI port of the BMC.Why is this needed
Removes port hardcoding to default IPMI UDP port
623