Skip to content

Commit f0a3360

Browse files
committed
Preserve hub replicas during upgrade (bsc#1262708)
1 parent 0ac8612 commit f0a3360

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

mgradm/shared/hub/xmlrpcapi.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ func Upgrade(
9595
}
9696
}
9797

98+
if !hubXmlrpcFlags.IsChanged {
99+
return systemd.RestartInstantiated(podman.HubXmlrpcService)
100+
}
101+
98102
// In some case we may loose the currently running instance. Restore the count we had before
99103
return systemd.ScaleService(hubXmlrpcFlags.Replicas, podman.HubXmlrpcService)
100104
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Preserve hub replicas during upgrade (bsc#1262708)

0 commit comments

Comments
 (0)