lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.48k stars 1.46k forks source link

unable to update status subresource on CRD #8086

Open AvihaiSam opened 3 weeks ago

AvihaiSam commented 3 weeks ago

Describe the bug Trying to update a CRD's status. when clicking "save" no errors appear but status isn't really updated

To Reproduce Steps to reproduce the behavior:

  1. Go to the desired resource
  2. Click on edit
  3. Update status
  4. Click 'save & close'
  5. Click on edit (again)
  6. Change was not accepted

Expected behavior Change shuold be accepted

Environment (please complete the following information):

AvihaiSam commented 3 weeks ago

with kubectl - the way to patch a subprocess is:

kubectl patch resource-type my-resource --type=merge --subresource status --patch 'status: {updated: true}'