remove support for manifest version 1

this is long untested by now
This commit is contained in:
Girish Ramakrishnan
2021-12-06 17:43:50 -08:00
parent 2415e1ca4b
commit 683ac9b16e
5 changed files with 56 additions and 70 deletions

View File

@@ -2222,7 +2222,7 @@ async function restart(app, auditSource) {
function checkManifestConstraints(manifest) {
assert(manifest && typeof manifest === 'object');
if (manifest.manifestVersion > 2) return new BoxError(BoxError.BAD_FIELD, 'Manifest version must be <= 2');
if (manifest.manifestVersion !== 2) return new BoxError(BoxError.BAD_FIELD, 'Manifest version must be 2');
if (!manifest.dockerImage) return new BoxError(BoxError.BAD_FIELD, 'Missing dockerImage'); // dockerImage is optional in manifest