Removing armada reference in k8sapp_audit

Removing armada references from python_k8sapp_audit, armada is no
longer supported and it was causing the automated test
"audit_switchover" to fail.

Test Plan:
PASS: Run modified audit.tar.gz locally and check sysinv.log
      for the ERROR.
PASS: Run automated test in lab to check it the test case is
      passing.
PASS: Check auditd basic functionality.

Closes-Bug: 1995632
Signed-off-by: Karla Felix <karla.karolinenogueirafelix@windriver.com>
Change-Id: Ie07b4c48f965aba077f3cbb068eedd45e0ad64d7
This commit is contained in:
Karla Felix 2022-10-31 12:39:01 -03:00
parent 475e9b98fe
commit c88eb47e37
3 changed files with 0 additions and 54 deletions

View File

@ -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)

View File

@ -1,32 +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_auditd.common import constants as app_constants
from k8sapp_auditd.helm.auditd import AuditdHelm
from sysinv.helm import manifest_base as base
class AuditdArmadaManifestOperator(base.ArmadaManifestOperator):
APP = app_constants.HELM_APP_AUDITD
ARMADA_MANIFEST = 'armada-manifest'
CHART_GROUP_AUDITD = 'auditd'
CHART_GROUPS_LUT = {
AuditdHelm.CHART: 'kube-system-auditd',
}
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
"""

View File

@ -35,8 +35,5 @@ systemconfig.helm_applications =
systemconfig.helm_plugins.auditd =
001_auditd = k8sapp_auditd.helm.auditd:AuditdHelm
systemconfig.armada.manifest_ops =
auditd = k8sapp_auditd.armada.manifest_auditd:AuditdArmadaManifestOperator
[wheel]
universal = 1