(ctx context.Context, nodeId int64)
| 117 | klog.Errorf("pre-update check failed for node(%d): %v", nodeId, err) |
| 118 | return err |
| 119 | } |
| 120 | |
| 121 | updates := make(map[string]interface{}) |
| 122 | if req.Name != nil { |
| 123 | updates["name"] = *req.Name |
| 124 | } |
| 125 | if req.Ip != nil { |
| 126 | updates["ip"] = *req.Ip |
| 127 | } |
| 128 | if req.Auth != nil { |
| 129 | authStr, e := req.Auth.Marshal() |
| 130 | if e != nil { |
| 131 | klog.Errorf("marshal auth: %v", e) |
| 132 | return errors.ErrInvalidRequest |
nothing calls this directly
no test coverage detected