Skip to content

editing resources erase all other resources in single file #4244

@acottais

Description

@acottais

Describe the bug
When i edit a resource from a multi resource file, the file is saved with only the edited resource. All the other resources are deleted

To Reproduce
Steps to reproduce the behavior:

  1. open a file containing multiple Kubernetes resources
  2. Select one resource to focus the editor on that resource
  3. Edit the resource
  4. When going to diff panel or viewing the file with another text editor only the edited resources is present in the file

Expected behavior
All the original resources in the file should be saved when one resource is edited

Screenshots
image

Desktop (please complete the following information):

  • OS: windows
  • Version 2.4.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No Status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions