Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Enable editing of objects #885

Merged
merged 3 commits into from
May 2, 2020
Merged

Enable editing of objects #885

merged 3 commits into from
May 2, 2020

Conversation

bryanl
Copy link
Contributor

@bryanl bryanl commented Apr 27, 2020

What this PR does / why we need it:

This change adds a preview of an editor for object YAML

@bryanl bryanl requested a review from a team April 27, 2020 21:11
@bryanl bryanl self-assigned this Apr 27, 2020
@bryanl bryanl changed the title Enable editing of objects (not CRDs) Enable editing of objects Apr 28, 2020
@wwitzel3
Copy link
Contributor

Taking a look this morning.

bryanl added 3 commits April 29, 2020 07:42
This change adds a preview of an editor for object YAML

Signed-off-by: bryanl <bryanliles@gmail.com>
ensure fake client has received an event before checking invariants

Signed-off-by: bryanl <bryanliles@gmail.com>
Signed-off-by: bryanl <bryanliles@gmail.com>
@GuessWhoSamFoo
Copy link
Contributor

GuessWhoSamFoo commented Apr 29, 2020

image

Case: edit a pod's container environment variable (which is not allowed). The error message can be cleaner with only the message "Forbidden: pod updates may not change fields other than...". It'd be even better if those lines can be blocked from editing, but this is not possible in monaco right now (microsoft/monaco-editor#953)

@GuessWhoSamFoo
Copy link
Contributor

We should catch ctrl + s key presses while the editor component is up. I am programmed to save reflexively after each edit

@bryanl bryanl merged commit 245f34d into master May 2, 2020
@bryanl bryanl deleted the editor-preview branch May 2, 2020 12:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants