Update comments of AppliedManifestWorkController

Signed-off-by: Yang Le <yangle@redhat.com>
This commit is contained in:
Yang Le
2020-12-04 13:52:25 +08:00
parent 82409da438
commit 4efd6bd5e5

View File

@@ -74,7 +74,7 @@ func (m *AppliedManifestWorkController) sync(ctx context.Context, controllerCont
manifestWork, err := m.manifestWorkLister.Get(manifestWorkName)
if errors.IsNotFound(err) {
// work not found, could have been deleted, do nothing.
// work not found, could have been deleted, do nothing.
return nil
}
if err != nil {
@@ -88,7 +88,7 @@ func (m *AppliedManifestWorkController) sync(ctx context.Context, controllerCont
appliedManifestWorkName := fmt.Sprintf("%s-%s", m.hubHash, manifestWork.Name)
appliedManifestWork, err := m.appliedManifestWorkLister.Get(appliedManifestWorkName)
if errors.IsNotFound(err) {
// appliedmanifestwork not found, could have been deleted, do nothing.
// appliedmanifestwork not found, could have been deleted, do nothing.
return nil
}
if err != nil {