Merge "Removing armada reference in k8sapp_audit"

This commit is contained in:
Zuul 2022-11-04 15:51:12 +00:00 committed by Gerrit Code Review
commit 619ffb6ed1
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