From 5202e137d59eb221245b1f25d89cb122901a0a4c Mon Sep 17 00:00:00 2001 From: Matthew McGinn Date: Mon, 27 May 2019 21:18:35 +0800 Subject: [PATCH] compose: remove artificial 20 repo limit This issue has now been fixed server-side Connects-to: #1070 Change-type: minor Signed-off-by: Matthew McGinn --- lib/utils/compose.coffee | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/utils/compose.coffee b/lib/utils/compose.coffee index aa717f8b..43ae585d 100644 --- a/lib/utils/compose.coffee +++ b/lib/utils/compose.coffee @@ -390,22 +390,10 @@ getPreviousRepos = (sdk, docker, logger, appID) -> authorizePush = (sdk, logger, tokenAuthEndpoint, registry, images, previousRepos) -> _ = require('lodash') - # TODO: https://github.com/balena-io/balena-cli/issues/1070 - maxRepos = 20 - if not _.isArray(images) images = [ images ] - if images.length > maxRepos - throw new Error ( - "More than #{maxRepos} containers is currently not supported, see " + - 'https://github.com/balena-io/balena-cli/issues/1070 for more information' - ) images.push previousRepos... - if images.length + previousRepos?.length > maxRepos - logger.logDebug("Truncating requested repositories to #{maxRepos} by limiting previously pushed repo access") - # at this point, we know we're only truncating access to previously pushed repos - images = images[0...maxRepos] sdk.request.send baseUrl: tokenAuthEndpoint url: '/auth/v1/token'