Skip to content

Commit bf42e2d

Browse files
Fix to populate hostWWPN in TridentNodes CRD
1 parent fe6eeb8 commit bf42e2d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

persistent_store/crd/apis/netapp/v1/node.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func (in *TridentNode) Apply(persistent *models.Node) error {
4242
in.IQN = persistent.IQN
4343
in.NQN = persistent.NQN
4444
in.IPs = persistent.IPs
45+
in.HostWWPNMap = persistent.HostWWPNMap
4546
in.Deleted = persistent.Deleted
4647
in.PublicationState = string(persistent.PublicationState)
4748
in.LogLevel = persistent.LogLevel
@@ -75,6 +76,7 @@ func (in *TridentNode) Persistent() (*models.Node, error) {
7576
IQN: in.IQN,
7677
NQN: in.NQN,
7778
IPs: in.IPs,
79+
HostWWPNMap: in.HostWWPNMap,
7880
NodePrep: &models.NodePrep{},
7981
HostInfo: &models.HostSystem{},
8082
Deleted: in.Deleted,

persistent_store/crd/apis/netapp/v1/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ type TridentNode struct {
368368
NQN string `json:"nqn,omitempty"`
369369
// IPs is a list of IP addresses for the TridentNode
370370
IPs []string `json:"ips,omitempty"`
371+
// HostWWPNMap is the map of host WWPNs
372+
HostWWPNMap map[string][]string `json:"hostWWPNMap,omitempty"`
371373
// NodePrep is the current status of node preparation for this node
372374
NodePrep runtime.RawExtension `json:"nodePrep,omitempty"`
373375
// HostInfo contains information about the node's host machine

0 commit comments

Comments
 (0)