Refactor stx-kubernetes-power-manager-helm package name
Previous changes enabled the auto-versioning of helm charts to ensure FluxCD helm controller recognizes chart changes. As a result of this refactor, the package name `stx-kubernetes-power-manager-helm` became outdated. This commit updates its name to `stx-kubernetes-power-manager`. It also improves chart versioning based on the Debian environment. Story: 2010929 Task: 49969 Test Plan: PASS: Build all packages generating an application tarball and check whether the charts' versions are correct. PASS: Validate basic application lifecycle operations: upload/apply/remove/delete. Author: Guilherme Santos <guilherme.santos@windriver.com> Change-Id: I82d3ce1ead5a4215268593b4cc9037b3e96074d7 Signed-off-by: Guilherme Santos <guilherme.santos@windriver.com>
This commit is contained in:
parent
050e9d2407
commit
e0d181c52b
@ -1,3 +1,3 @@
|
||||
helm-charts/upstream/kubernetes-power-manager-helm
|
||||
python3-k8sapp-kubernetes-power-manager
|
||||
stx-kubernetes-power-manager-helm
|
||||
stx-kubernetes-power-manager
|
||||
|
@ -6,10 +6,9 @@ export APP_FOLDER = $(ROOT)/usr/lib/helm
|
||||
|
||||
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
||||
export PATCH_VERSION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
||||
|
||||
export BASE_CHART_VERSION=v2.4.0
|
||||
export BASE_HELM_VERSION=2.4.0
|
||||
export CHART_VERSION = $(BASE_CHART_VERSION)+STX.$(PATCH_VERSION)
|
||||
export CHART_BASE_VERSION = $(shell echo $(DEB_VERSION) | sed 's/-/./' | cut -d '.' -f 1-3)
|
||||
export CHART_VERSION = $(CHART_BASE_VERSION)+STX.$(PATCH_VERSION)
|
||||
export CHART_APP_VERSION=v$(CHART_BASE_VERSION)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
@ -32,7 +32,7 @@ lint-%: init-%
|
||||
|
||||
build-%: lint-%
|
||||
if [ -d $* ]; then \
|
||||
helm package $(HELM_DIR) --version $(BASE_HELM_VERSION) --app-version $(BASE_CHART_VERSION); \
|
||||
helm package $(HELM_DIR) --version $(CHART_BASE_VERSION) --app-version $(CHART_APP_VERSION); \
|
||||
fi
|
||||
|
||||
clean:
|
||||
|
@ -1,11 +0,0 @@
|
||||
stx-kubernetes-power-manager-helm (1.1-0) unstable; urgency=medium
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- Guilherme Santos <guilherme.santos@windriver.com> Mon, 4 Mar 2024 15:55:10 -0300
|
||||
|
||||
stx-kubernetes-power-manager-helm (1.0-0) unstable; urgency=medium
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- Thiago Miranda <tmarques@windriver.com> Mon, 1 Aug 2023 08:00:00 +0000
|
11
stx-kubernetes-power-manager/debian/deb_folder/changelog
Normal file
11
stx-kubernetes-power-manager/debian/deb_folder/changelog
Normal file
@ -0,0 +1,11 @@
|
||||
stx-kubernetes-power-manager (1.1-0) unstable; urgency=medium
|
||||
|
||||
* Renaming package according to the new app structure.
|
||||
|
||||
-- Guilherme Santos <guilherme.santos@windriver.com> Mon, 24 Apr 2024 15:42:10 +0000
|
||||
|
||||
stx-kubernetes-power-manager-helm (1.0-0) unstable; urgency=medium
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- Thiago Miranda <tmarques@windriver.com> Mon, 1 Aug 2023 08:00:00 +0000
|
@ -1,4 +1,4 @@
|
||||
Source: stx-kubernetes-power-manager-helm
|
||||
Source: stx-kubernetes-power-manager
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||
@ -10,7 +10,7 @@ Build-Depends: debhelper-compat (= 13),
|
||||
Standards-Version: 4.5.1
|
||||
Homepage: https://www.starlingx.io
|
||||
|
||||
Package: stx-kubernetes-power-manager-helm
|
||||
Package: stx-kubernetes-power-manager
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}
|
@ -1,5 +1,5 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: stx-kubernetes-power-manager-helm
|
||||
Upstream-Name: stx-kubernetes-power-manager
|
||||
Source: https://opendev.org/starlingx/app-kubernetes-power-manager/
|
||||
|
||||
Files: *
|
@ -31,7 +31,7 @@ override_dh_auto_build:
|
||||
chart_name=$${chart%-*}; \
|
||||
chart_version=$${chart##*-}; \
|
||||
echo "Found $$chart; name: $$chart_name, version: $$chart_version"; \
|
||||
chart_manifest=$$(find $(STAGING)/fluxcd-manifests -name helmrelease.yaml -exec grep -q $$chart_name {} \; -print); \
|
||||
chart_manifest=$$(find $(STAGING)/fluxcd-manifests/$$chart_name -name helmrelease.yaml -exec grep -q $$chart_name {} \; -print); \
|
||||
echo "Updating manifest: $$chart_manifest"; \
|
||||
sed -i "s/REPLACE_HELM_CHART_VERSION/$$chart_version/g" $$chart_manifest; \
|
||||
grep version $$chart_manifest; \
|
@ -3,9 +3,9 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
debname: stx-kubernetes-power-manager-helm
|
||||
debname: stx-kubernetes-power-manager
|
||||
debver: 1.1-0
|
||||
src_path: stx-kubernetes-power-manager-helm
|
||||
src_path: stx-kubernetes-power-manager
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
GITREVCOUNT:
|
Loading…
Reference in New Issue
Block a user