Change deployment strategy to Recreate

The default deployment strategy is RollingUpdate, which causes the
application update to fail. Since the Pods share the same Persistent
Volume for their database, the original Pod must be shut down before
creating a new one.

This commit resolves the application issue by switching the deployment
strategy to Recreate. This ensures the old Pod is shut down before a new
Pod is created during the upgrade process.

Test Plan:
PASS: Validate basic application lifecycle operations:
      upload/apply/remove/delete
PASS: Upgrade the application on Duplex nodes, confirming a successful
      upgrade to the new version without issues.

Closes-Bug: 2088424
Change-Id: Ide821620ffedfd0a8e58ad2883e3348fddb6994f
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
This commit is contained in:
Zhang Rong(Jon) 2024-11-18 06:39:17 +00:00
parent 74810eecea
commit affec587e0
4 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,9 @@
oran-o2-helm (2.0.4-2) unstable; urgency=medium
* Deployment strategy type update
-- Jon Zhang <rong.zhang@windriver.com> Mon, 18 Nov 2024 09:40:00 +0000
oran-o2-helm (2.0.4-1) unstable; urgency=medium
* ORAN release J

View File

@ -1,14 +1,14 @@
---
debname: oran-o2-helm
debver: 2.0.4-1
debver: 2.0.4-2
src_path: oran-o2-helm
src_files:
- oran-o2-helm/files/Makefile
dl_files:
pti-o2.tgz:
topdir: pti-o2
url: https://github.com/o-ran-sc/pti-o2/archive/585eb7242c683657997e8b5ab0ce01213086dcec.tar.gz
md5sum: 2483280a37e674059172e6f4510df50f
url: https://github.com/o-ran-sc/pti-o2/archive/012ba0127481023de4cdcb4e9b77ee5e10f8e5ad.tar.gz
md5sum: 78fa0b993c5b68d8ee5c0ec0a80bc948
revision:
dist: $STX_DIST
GITREVCOUNT:

View File

@ -1,3 +1,9 @@
stx-oran-o2-helm (1.2-2) unstable; urgency=medium
* Deployment strategy type update
-- Jon Zhang <rong.zhang@windriver.com> Mon, 18 Nov 2024 09:40:00 +0000
stx-oran-o2-helm (1.2-1) unstable; urgency=medium
* Auto chart increment update

View File

@ -1,6 +1,6 @@
---
debname: stx-oran-o2-helm
debver: 1.2-1
debver: 1.2-2
src_path: stx-oran-o2-helm
revision:
dist: $STX_DIST