From b572232c9630a67ea7f8bde4c315b7b8dc198fe6 Mon Sep 17 00:00:00 2001 From: Angie Wang Date: Fri, 25 Oct 2019 14:30:44 -0400 Subject: [PATCH] Add metadata for stx-monitor The metadata "maintain_user_overrides" is used to determine whether the user overrides will be reused or not when updating the application to a new version. Set it true for stx-monitor. Change-Id: Icfb5963f6396d099a61ca9d76963dc63531595b5 Partial-Bug: 1849486 Signed-off-by: Angie Wang --- stx-monitor-helm/centos/stx-monitor-helm.spec | 4 ++++ stx-monitor-helm/stx-monitor-helm/files/metadata.yaml | 1 + 2 files changed, 5 insertions(+) create mode 100644 stx-monitor-helm/stx-monitor-helm/files/metadata.yaml diff --git a/stx-monitor-helm/centos/stx-monitor-helm.spec b/stx-monitor-helm/centos/stx-monitor-helm.spec index 393265a..681adf1 100644 --- a/stx-monitor-helm/centos/stx-monitor-helm.spec +++ b/stx-monitor-helm/centos/stx-monitor-helm.spec @@ -1,4 +1,5 @@ %global armada_folder /usr/lib/armada +%global app_folder /usr/lib/application Summary: StarlingX Monitor Application Armada Helm Charts Name: stx-monitor-helm @@ -26,7 +27,10 @@ StarlingX Monitor Application Armada Helm Charts %install install -d -m 755 ${RPM_BUILD_ROOT}%{armada_folder} install -p -D -m 755 manifests/*.yaml ${RPM_BUILD_ROOT}%{armada_folder} +install -d -m 755 ${RPM_BUILD_ROOT}%{app_folder} +install -p -D -m 755 files/metadata.yaml ${RPM_BUILD_ROOT}%{app_folder} %files %defattr(-,root,root,-) %{armada_folder}/* +%{app_folder}/* diff --git a/stx-monitor-helm/stx-monitor-helm/files/metadata.yaml b/stx-monitor-helm/stx-monitor-helm/files/metadata.yaml new file mode 100644 index 0000000..d319a57 --- /dev/null +++ b/stx-monitor-helm/stx-monitor-helm/files/metadata.yaml @@ -0,0 +1 @@ +maintain_user_overrides: true