-
Story
-
Resolution: Done
-
Medium
-
None
When a VSP is imported and an ARM is configured, the images shall be stripped from the onboarded csar in order to reduce the size of the csar to a size managable by SDC.
If no ARM is configured, behaviour will be as today.
Care should be taken to not parse the full original csar into memory to avoid OOM
Proposed Implementation:
- the csar is received in OrchestrationTemplateCandidateImpl.upload()
- Replace the reading of the byte[] of contents from the Attachment with:
- if an ARM is configured
- save the csar to a tmp location on the filesystem
- replace all files in a configurable list of directories in the csar with empty files of the same name (to avoid updates to the manifest)
- read the byte[] for the updated csar rather than the received csar
- if no ARM, process as today
- if an ARM is configured
- relates to
-
SDC-3652 Handle signed csars
- Closed