Use strongly-typed types.NodeName for a node name
We had another bug where we confused the hostname with the NodeName. To avoid this happening again, and to make the code more self-documenting, we use types.NodeName (a typedef alias for string) whenever we are referring to the Node.Name. A tedious but mechanical commit therefore, to change all uses of the node name to use types.NodeName Also clean up some of the (many) places where the NodeName is referred to as a hostname (not true on AWS), or an instanceID (not true on GCE), etc.
This commit is contained in:
@@ -2568,7 +2568,7 @@ type SerializedReference struct {
|
||||
type EventSource struct {
|
||||
// Component from which the event is generated.
|
||||
Component string `json:"component,omitempty"`
|
||||
// Host name on which the event is generated.
|
||||
// Node name on which the event is generated.
|
||||
Host string `json:"host,omitempty"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user