vmware-archive / octant

Highly extensible platform for developers to better understand the complexity of Kubernetes clusters.
https://octant.dev
Apache License 2.0
6.28k stars 489 forks source link

Apply YAML fails to convert payload #2835

Open davidmirror-ops opened 3 years ago

davidmirror-ops commented 3 years ago

What steps did you take and what happened:

While trying to create a Persistent Volume from the "Apply YAML" section on Octant (both in the Electron and browser) it doesn't do anything.

The YAML for the resource:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: flash-pv
  labels:
    type: local
    app: web
spec:
  storageClassName: flash
  capacity:
    storage: 10Gi
  accessModes:
  - ReadWriteOnce
  hostPath:
    path: "/mnt/data"

Watching the logs, Octant reports the following:

ERROR   action/manager.go:193   actionFunc returned err: convert payload to apply yaml request: namespace is blank  {"component": "action-manager"}

But the Persistent Volume is not a namespaced resource, and applying the same YAML from kubectl works just fine What did you expect to happen:

PV should be created from the Apply YAML view

Anything else you would like to add: N/A

Environment:

GuessWhoSamFoo commented 3 years ago

I can't reproduce this error:

image