From bb07f860e1c2dc6c289647d2ba310ad76529c841 Mon Sep 17 00:00:00 2001 From: Fabricio Henrique Ramos Date: Wed, 8 Mar 2023 19:34:53 -0300 Subject: [PATCH] Remove armada Depends-On: https://review.opendev.org/c/starlingx/config/+/869094 Story: 2010560 Task: 47608 Signed-off-by: Fabricio Henrique Ramos Change-Id: I1e0784456aae3d8e54797bfc17de76ea0e0bc52a --- .../armada/__init__.py | 19 --------- .../armada/manifest_ptp_notification.py | 41 ------------------- 2 files changed, 60 deletions(-) delete mode 100644 python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/__init__.py delete mode 100644 python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/manifest_ptp_notification.py diff --git a/python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/__init__.py b/python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/__init__.py deleted file mode 100644 index 9bc4dd1..0000000 --- a/python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (c) 2021 Wind River Systems, Inc. -# -# SPDX-License-Identifier: Apache-2.0 -# - -import yaml - - -class quoted_str(str): - pass - - -# force strings to be single-quoted to avoid interpretation as numeric values -def quoted_presenter(dumper, data): - return dumper.represent_scalar(u'tag:yaml.org,2002:str', data, style="'") - - -yaml.add_representer(quoted_str, quoted_presenter) diff --git a/python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/manifest_ptp_notification.py b/python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/manifest_ptp_notification.py deleted file mode 100644 index 63b654f..0000000 --- a/python3-k8sapp-ptp-notification/k8sapp_ptp_notification/k8sapp_ptp_notification/armada/manifest_ptp_notification.py +++ /dev/null @@ -1,41 +0,0 @@ -# -# Copyright (c) 2021 Wind River Systems, Inc. -# -# SPDX-License-Identifier: Apache-2.0 -# -# All Rights Reserved. -# - -""" System inventory Armada manifest operator.""" - -from k8sapp_ptp_notification.helm.rbd_provisioner import PTPNotificationHelm -from k8sapp_ptp_notification.helm.psp_rolebinding import PSPRolebindingHelm - -from sysinv.common import constants -from sysinv.helm import manifest_base as base - - -class PTPNotificationArmadaManifestOperator(base.ArmadaManifestOperator): - - APP = constants.HELM_APP_PTP_NOTIFICATION - ARMADA_MANIFEST = 'armada-manifest' - - CHART_GROUP_PSP_ROLEBINDING = 'ptp-notification-psp-rolebinding' - CHART_GROUP_PTP_NOTIFICATION = 'ptp-notification' - CHART_GROUPS_LUT = { - PSPRolebindingHelm.CHART: CHART_GROUP_PSP_ROLEBINDING, - PTPNotificationHelm.CHART: CHART_GROUP_PTP_NOTIFICATION - } - - CHARTS_LUT = { - PSPRolebindingHelm.CHART: 'ptp-notification-psp-rolebinding', - PTPNotification.CHART: 'ptp-notification' - } - - def platform_mode_manifest_updates(self, dbapi, mode): - """ Update the application manifest based on the platform - - :param dbapi: DB api object - :param mode: mode to control how to apply the application manifest - """ - pass