-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update YAML editor to provide default content
If the user switches to YAML mode in the Create PipelineRun page we should not present them with an empty editor. At the very least we should pre-populate it with the basic outline of a PipelineRun, i.e. `apiVersion`, `kind`, `metadata` with default name + namespace placeholder, `spec`. If the user has already updated the form before switching to YAML mode, preserve their selected inputs and display the corresponding YAML so they can continue editing as needed. Remove unused code from the YAML editor related to loading of the Pipeline resource.
1 parent
83c3a7c
commit e58b8cd
Showing
6 changed files
with
162 additions
and
171 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.