Override "after" key deprecated by "dependent_apps"

Adjust the metadata.yaml of the kubernetes-power-manager application to
no longer use the after key and instead use the "dependent_apps" key.

This new feature installs the NFD app if you need to install
kubernetes-power-manager and NFD is not already installed.

Test Plan:
PASS: build-pkgs && build-image
PASS: fresh install AIO-SX
PASS: Upload, remove, apply and delete kubernetes-power-manager app
PASS: Update and rollback kubernetes-power-manager app
PASS: NFD was triggered to upload and apply automatically after the
      kubernetes-power-manager apply process started.

Story: 2011351
Task: 52348

Depends-On: https://review.opendev.org/c/starlingx/config/+/952863

Change-Id: Icb770c49f7ff5f48999624e4ccc29a30eb0148db
Signed-off-by: David Bastos <david.barbosabastos@windriver.com>
This commit is contained in:
David Bastos
2025-06-06 15:15:24 -03:00
parent c1dbe8c456
commit 93ce26a2f4

View File

@@ -18,9 +18,11 @@ supported_k8s_version:
behavior:
platform_managed_app: yes
evaluate_reapply:
after:
- node-feature-discovery
triggers:
- type: host-label-assign
- type: host-modify
dependent_apps:
- name: node-feature-discovery
version: 25\.09-\d+
action: apply