-
Notifications
You must be signed in to change notification settings - Fork 15
Update deviceController to reconcile the device between the openyurt and edge #2
Conversation
@@ -0,0 +1,315 @@ | |||
package edgex_foudry |
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.
please add license header
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 for reminding, the license header is added.
logr.Logger | ||
} | ||
|
||
func NewEdgexDeviceClient(coreMetaClient, coreCommandClient ClientURL, log logr.Logger) *EdgexDeviceClient { |
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.
why use logr.Logger
instead of k8s.io/klog
?
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 for your suggestion, and I will submit a PR to replace all logr.Logger
with k8s.io/klog
clients/edgex-foundry/util.go
Outdated
@@ -0,0 +1,295 @@ | |||
package edgex_foudry |
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.
please add license header
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 for reminding, the license header is added.
clients/errors.go
Outdated
@@ -8,6 +8,8 @@ type NotFoundError struct{} | |||
func (e *NotFoundError) Error() string { return "Item not found" } | |||
|
|||
func IsNotFoundErr(err error) bool { | |||
return err.Error() == "Item not found" || strings.HasPrefix(err.Error(), "no item found") | |||
// return errors.Is(err, &NotFoundError{}) | |||
if err == nil { |
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.
please add license header
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 for reminding, the license header is added.
clients/interface.go
Outdated
@@ -0,0 +1,104 @@ | |||
/* | |||
Copyright 2021 The Kubernetes authors. |
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.
Kubernetes author --> OpenYurt author?
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 for reminding, the license header is changed.
a039956
to
7d47bfa
Compare
@qclc please fix the conflicting files. |
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
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: qclc, rambohe-ch The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
(Note: only support the
DeviceProperties
,AdminState
andOperatingState
fields of device)charleszheng44
toopenyurtio