This commit adds the PtpNotificationAppLifecycleOperator which allows
sysinv to perform various actions in response to application lifecycle
events.
This implementation follows the approach used in other StarlingX
platform applications such as sriov-fec-operator. See change-id:
I75ac1ba3ab218d07091f93072f220082285995b3 for another example.
The only hook currently in use for ptp-notification is a post_remove
action to delete the "notification" namespace.
The remaining hooks are present with debug logging in order to simplify
adding additional functionality in the future.
Test plan:
Pass: Verify ptp-notification package build and deployment
Pass: Verify post_remove hook runs when application is removed via
"system application-remove ptp-notification". Namespace "notification"
is correctly removed.
Pass: Verify application upload/apply/remove/delete
Pass: Verify basic ptp-notification operations (get status,
subscribe, list, delete)
Closes-bug: 2122073
Signed-off-by: Cole Walker <cole.walker@windriver.com>
Change-Id: Ic730b274c38bde554c04036c339188aa69c15bcb