lensapp / lens

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

Lens Desktop: Error handling on "Create resource" is broken #8019

Closed rfx77 closed 4 months ago

rfx77 commented 4 months ago

When is create a resource in Lens Desktop Personal and there is some error in the yaml i dont get a info with the real reason. It always shows "Unknown error occured while creating resource"

with kubectl it shows the real reason

Sample yaml with error:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: myclaim3
spec:
  accessModes:
    - ReadWriteOnce
  volumeMode: Filesystemx
  resources:
    requests:

kubectl says correctly: The PersistentVolumeClaim "myclaim3" is invalid: spec.resources[storage]: Required value

this is what lens says

image

image


My environment: Lens Desktop Personal: 2024.1.300751-latest (on Windows 10) Kubernetes: RKE2 1.27.10 on Linux

clrothmann commented 4 months ago

Thanks for reporting @rfx77. This one is known to us and will be fixed within one of our next releases

create_resource_message