Add devfile validation to explicitly disallow usage of mountSources
and sourceMapping
until we support them.
MR: Disallow usage of mountSources and sourceMappin... (!199305 - merged) • Omar Nasser • 18.4
Description
Overview
Add devfile validation to explicitly disallow usage of mountSources
and sourceMapping
until we support them.
See this comment on Add support for container specific postStart ev... (#553096 - closed) • Daniyal Arshad, Ashvin Sharma • 18.5 for context.
Details
We don't seem to be handling at all the devfile standards for mountSources
and sourceMapping
.
- https://devfile.io/docs/2.3.0/devfile-schema#components-container-mount-sources
- https://devfile.io/docs/2.3.0/devfile-schema#components-container-source-mapping
We should explicitly disable them in the devfile validation until we can add support for them.
Acceptance criteria
-
If mountSources
orsourceMapping
appears in a devfile, the validation should fail -
User-facing documentation should be updated accordingly
Implementation plan
- These changes will be added to
ee/lib/remote_development/devfile_operations/restrictions_enforcer.rb
- Doc updates will be made in
doc/user/workspace/_index.md
Edited by Chad Woolley