Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add the logic of removing the finalizer in yurt-iot-dock #1695

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

Pluviophile225
Copy link
Contributor

What type of PR is this?

/kind bug
/sig iot

What this PR does / why we need it:

add the logic of removing the finalizer

Which issue(s) this PR fixes:

Fixes #1694

Special notes for your reviewer:

/assgin @LavenderQAQ @wangxye

@openyurt-bot
Copy link
Collaborator

@Pluviophile225: GitHub didn't allow me to assign the following users: your_reviewer.

Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

What type of PR is this?

/kind bug
/sig iot

What this PR does / why we need it:

add the logic of removing the finalizer

Which issue(s) this PR fixes:

Fixes #1694

Special notes for your reviewer:

/assgin @LavenderQAQ @wangxye

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openyurt-bot openyurt-bot added the kind/bug kind/bug label Sep 7, 2023
@openyurt-bot openyurt-bot added the sig/iot sig/iot label Sep 7, 2023
@openyurt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Pluviophile225
To complete the pull request process, please assign rambohe-ch
You can assign the PR to them by writing /assign @rambohe-ch in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openyurt-bot openyurt-bot added the size/M size/M: 30-99 label Sep 7, 2023
@LavenderQAQ
Copy link
Member

/assign

},
})
if err := ds.Client.Patch(context.TODO(), kds, client.RawPatch(types.MergePatchType, patchData)); err != nil {
return err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the log before returning the error:

klog.V(5).ErrorS(err, "fail to remove finalizer of DeviceService on Kubernetes", "DeviceService", kds.Name)

},
})
if err := dps.Client.Patch(context.TODO(), kdp, client.RawPatch(types.MergePatchType, patchData)); err != nil {
return err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the log before returning the error:

klog.V(5).ErrorS(err, "fail to remove finalizer of DeviceProfile on Kubernetes", "DeviceProfile", dps.Name)

},
})
if err := ds.Client.Patch(context.TODO(), kd, client.RawPatch(types.MergePatchType, patchData)); err != nil {
return err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the log before returning the error:

klog.V(5).ErrorS(err, "fail to remove finalizer of Device on Kubernetes", "Device", ds.Name)

@Pluviophile225 Pluviophile225 changed the title fix: add the logic of removing the finalizer fix: add the logic of removing the finalizer in yurt-iot-dock Sep 7, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 7, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.9% 4.9% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link
Member

@LavenderQAQ LavenderQAQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@LavenderQAQ
Copy link
Member

PTAL @wangxye

@wangxye
Copy link
Member

wangxye commented Sep 8, 2023

/assign

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #1695 (a6d4ddb) into master (8b8c6e1) will increase coverage by 0.01%.
Report is 5 commits behind head on master.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1695      +/-   ##
==========================================
+ Coverage   51.75%   51.76%   +0.01%     
==========================================
  Files         163      163              
  Lines       19716    19716              
==========================================
+ Hits        10204    10206       +2     
+ Misses       8542     8541       -1     
+ Partials      970      969       -1     
Flag Coverage Δ
unittests 51.76% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@rambohe-ch
Copy link
Member

/lgtm

@rambohe-ch
Copy link
Member

/approve

@rambohe-ch rambohe-ch merged commit 6006a94 into openyurtio:master Sep 14, 2023
13 of 14 checks passed
luckymrwang added a commit to luckymrwang/openyurt that referenced this pull request Sep 20, 2023
…fix_calico

* 'master' of https://github.com/openyurtio/openyurt:
  Add status info to YurtAppSet/YurtAppDaemon (openyurtio#1702)
  fix: add the logic of removing the finalizer (openyurtio#1695)
  Fix work dir nested `yurthub/yurthub` (openyurtio#1693)
  Add yurtappoverrider (openyurtio#1684)
  modify the logic for judging static pods and combine the utils for pod and node (openyurtio#1689)
  chore: slice loop replace (openyurtio#1690)
  unified expression about DaemonSet (openyurtio#1698)
  improve controller names (openyurtio#1687)
  add gateway public service controller (openyurtio#1685)
  feat: add token format checking to yurtadm join process (openyurtio#1681)
  add gateway internal service controller (openyurtio#1677)
  fix: yurt-iot-dock cannot be dynamically deployed in platformadmin (openyurtio#1679)
  unserve v1alpha1 version of platformadmin crd (openyurtio#1659)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug kind/bug lgtm lgtm sig/iot sig/iot size/M size/M: 30-99
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Lack of the delete logic of finalizer in yurt-iot-dock
5 participants