mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-20 11:38:51 +00:00
Fix default volume name in migrations, and do not use the legacy-container flag on containers from older supervisors (they'll be restarted anyways)
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
58fede2976
commit
bb57bcc37c
@ -1,8 +1,4 @@
|
||||
|
||||
var defaultLegacyVolume = function (appId) {
|
||||
return `resin-app-${appId}`
|
||||
}
|
||||
|
||||
var tryParse = function (obj) {
|
||||
try {
|
||||
return JSON.parse(obj)
|
||||
@ -32,7 +28,7 @@ var singleToMulticontainerApp = function (app) {
|
||||
networks: {},
|
||||
volumes: {}
|
||||
}
|
||||
const defaultVolume = defaultLegacyVolume(appId)
|
||||
const defaultVolume = 'resin-data'
|
||||
newApp.volumes[defaultVolume] = {}
|
||||
let updateStrategy = conf['RESIN_SUPERVISOR_UPDATE_STRATEGY']
|
||||
if (updateStrategy == null) {
|
||||
@ -68,7 +64,6 @@ var singleToMulticontainerApp = function (app) {
|
||||
'io.resin.features.resin-api': '1',
|
||||
'io.resin.update.strategy': updateStrategy,
|
||||
'io.resin.update.handover-timeout': handoverTimeout,
|
||||
'io.resin.legacy-container': '1'
|
||||
},
|
||||
environment: environment,
|
||||
restart: restartPolicy,
|
||||
|
Loading…
Reference in New Issue
Block a user