rancher: trying to FORCE delete a pod fails with `Error deleting converting (url.Values) to (v1.DeleteOptions): unknown conversion`

while delete without forcing works as expected

K8s v1.21.1 (Scaleway Kubernetes Kapsule)
Rancher v2.5.8

gz#17810

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 17 (2 by maintainers)

Most upvoted comments

I have filed a PR to fix this issue. A fix for 2.5 is required, 2.6 is optional(as we don’t use Norman API to manage the k8s resources). Hope that we can merge it to the next v2.5.x milestone.

Issue still persists with Rancher 2.5.9 and k8s v1.20.6

✅ PASSED

Reproduction Environment

Component Version / Type
Rancher version 2.5.10
Installation option docker
Cert Details self signed
Helm version v2.16.8-rancher1
Downstream cluster type rke1 linode
Downstream K8s version v1.20.11
Logged in user role administrator
Browser type google chrome
Browser version 102.0.5005.115

Reproduction steps

  1. Create a downstream cluster
  2. Create a deployment
  3. Force delete a pod from the deployment
  4. Receive the following error:
Error deleting
converting (url.Values) to (v1.DeleteOptions): unknown conversion

RESULTS

✅ Expected

Force delete to remove the pod

❌ Actual

Pod was not deleted and an error message was displayed


Validation Environment

Component Version / Type
Rancher version v2.6-a8ae635611f1fb431f81f48ec19997fbc17c746f-head
Rancher commit link https://github.com/rancher/rancher/commit/a8ae635611f1fb431f81f48ec19997fbc17c746f
Installation option helm
RKE binary version used 1.3.11
If Helm Chart k8s cluster rke v1.23.6
Cert Details let’s encrypt
Docker version 20.10.7, build f0df350
Helm version v2.16.8-rancher1
Downstream cluster type rke1 linode
Downstream K8s version v1.23.7
Cert manager version v1.7.1
Auth Provider github
Logged in user role administrator
Browser type google chrome
Browser version 102.0.5005.115

Validation steps

  1. Create a downstream cluster
  2. Create a deployment
  3. Force delete a pod from the deployment from /g
  4. Deletion is successful with no errors

Additional Info

RESULTS

✅ Expected

Deletion to work without errors

✅ Actual

Deletion worked without errors

rancher wechat group

image