Remove psp-rolebinding from ptp-notification-armada-app
Removed the psp-rolebinding helm chart from being packaged as part of ptp-notification-armada-app. PASS: Build pkgs PASS: system-application apply ptp-notification PASS: application pkg doesn't consist psp-rolebinding helm chart Story: 2010590 Task: 47769 Signed-off-by: Rahul Roshan Kachchap <rahulroshan.kachchap@windriver.com> Change-Id: I15fb26a11d2bba4c51e0144e4c4435e7f27f9e52
This commit is contained in:
parent
0697ce7a2e
commit
178914b535
@ -7,4 +7,3 @@
|
|||||||
# Helm: Supported charts:
|
# Helm: Supported charts:
|
||||||
# These values match the names in the chart package's Chart.yaml
|
# These values match the names in the chart package's Chart.yaml
|
||||||
HELM_CHART_PTP_NOTIFICATION = 'ptp-notification'
|
HELM_CHART_PTP_NOTIFICATION = 'ptp-notification'
|
||||||
HELM_CHART_PSP_ROLEBINDING = 'ptp-notification-psp-rolebinding'
|
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2021 Wind River Systems, Inc.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
from k8sapp_ptp_notification.common import constants as app_constants
|
|
||||||
|
|
||||||
from sysinv.common import constants
|
|
||||||
from sysinv.common import exception
|
|
||||||
|
|
||||||
from sysinv.helm import base
|
|
||||||
from sysinv.helm import common
|
|
||||||
|
|
||||||
|
|
||||||
class PSPRolebindingHelm(base.BaseHelm):
|
|
||||||
"""Class to encapsulate helm operations for the psp rolebinding chart"""
|
|
||||||
|
|
||||||
SUPPORTED_NAMESPACES = base.BaseHelm.SUPPORTED_NAMESPACES + \
|
|
||||||
[common.HELM_NS_NOTIFICATION]
|
|
||||||
SUPPORTED_APP_NAMESPACES = {
|
|
||||||
constants.HELM_APP_PTP_NOTIFICATION:
|
|
||||||
base.BaseHelm.SUPPORTED_NAMESPACES + [common.HELM_NS_NOTIFICATION],
|
|
||||||
}
|
|
||||||
|
|
||||||
CHART = app_constants.HELM_CHART_PSP_ROLEBINDING
|
|
||||||
SERVICE_NAME = 'psp-rolebinding'
|
|
||||||
|
|
||||||
def get_namespaces(self):
|
|
||||||
return self.SUPPORTED_NAMESPACES
|
|
||||||
|
|
||||||
def get_overrides(self, namespace=None):
|
|
||||||
overrides = {
|
|
||||||
common.HELM_NS_NOTIFICATION: {}
|
|
||||||
}
|
|
||||||
|
|
||||||
if namespace in self.SUPPORTED_NAMESPACES:
|
|
||||||
return overrides[namespace]
|
|
||||||
elif namespace:
|
|
||||||
raise exception.InvalidHelmNamespace(chart=self.CHART,
|
|
||||||
namespace=namespace)
|
|
||||||
else:
|
|
||||||
return overrides
|
|
@ -34,7 +34,6 @@ systemconfig.helm_applications =
|
|||||||
|
|
||||||
systemconfig.helm_plugins.ptp_notification =
|
systemconfig.helm_plugins.ptp_notification =
|
||||||
001_ptp_notification = k8sapp_ptp_notification.helm.ptp_notification:PTPNotificationHelm
|
001_ptp_notification = k8sapp_ptp_notification.helm.ptp_notification:PTPNotificationHelm
|
||||||
002_ptp_notification-psp-rolebinding = k8sapp_ptp_notification.helm.psp_rolebinding:PSPRolebindingHelm
|
|
||||||
|
|
||||||
[bdist_wheel]
|
[bdist_wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
|
@ -27,7 +27,6 @@ override_dh_auto_build:
|
|||||||
|
|
||||||
# Create the TGZ file.
|
# Create the TGZ file.
|
||||||
cd helm-charts && make ptp-notification
|
cd helm-charts && make ptp-notification
|
||||||
cd helm-charts && make psp-rolebinding
|
|
||||||
|
|
||||||
# Terminate the helm chart server.
|
# Terminate the helm chart server.
|
||||||
pkill chartmuseum
|
pkill chartmuseum
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
debname: stx-ptp-notification-helm
|
debname: stx-ptp-notification-helm
|
||||||
debver: 1.0-1
|
debver: 1.0-1
|
||||||
src_path: stx-ptp-notification-helm
|
src_path: stx-ptp-notification-helm
|
||||||
src_files:
|
|
||||||
- ${MY_REPO}/stx/helm-charts/psp-rolebinding/psp-rolebinding
|
|
||||||
revision:
|
revision:
|
||||||
dist: $STX_DIST
|
dist: $STX_DIST
|
||||||
GITREVCOUNT:
|
GITREVCOUNT:
|
||||||
|
@ -9,4 +9,3 @@ namespace: notification
|
|||||||
resources:
|
resources:
|
||||||
- base
|
- base
|
||||||
- ptp-notification
|
- ptp-notification
|
||||||
- ptp-notification-psp-rolebinding
|
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2022 Wind River Systems, Inc.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
apiVersion: "helm.toolkit.fluxcd.io/v2beta1"
|
|
||||||
kind: HelmRelease
|
|
||||||
metadata:
|
|
||||||
name: ptp-notification-psp-rolebinding
|
|
||||||
labels:
|
|
||||||
chart_group: ptp-notification
|
|
||||||
spec:
|
|
||||||
releaseName: ptp-ptp-notification-psp-rolebinding
|
|
||||||
chart:
|
|
||||||
spec:
|
|
||||||
chart: psp-rolebinding
|
|
||||||
version: 0.1.0
|
|
||||||
sourceRef:
|
|
||||||
kind: HelmRepository
|
|
||||||
name: stx-platform
|
|
||||||
interval: 1m
|
|
||||||
timeout: 30m
|
|
||||||
test:
|
|
||||||
enable: false
|
|
||||||
install:
|
|
||||||
disableHooks: false
|
|
||||||
upgrade:
|
|
||||||
disableHooks: false
|
|
||||||
valuesFrom:
|
|
||||||
- kind: Secret
|
|
||||||
name: ptp-notification-psp-rolebinding-static-overrides
|
|
||||||
valuesKey: ptp-notification-psp-rolebinding-static-overrides.yaml
|
|
||||||
- kind: Secret
|
|
||||||
name: ptp-notification-psp-rolebinding-system-overrides
|
|
||||||
valuesKey: ptp-notification-psp-rolebinding-system-overrides.yaml
|
|
@ -1,17 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2022 Wind River Systems, Inc.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
namespace: notification
|
|
||||||
resources:
|
|
||||||
- helmrelease.yaml
|
|
||||||
secretGenerator:
|
|
||||||
- name: ptp-notification-psp-rolebinding-static-overrides
|
|
||||||
files:
|
|
||||||
- ptp-notification-psp-rolebinding-static-overrides.yaml
|
|
||||||
- name: ptp-notification-psp-rolebinding-system-overrides
|
|
||||||
files:
|
|
||||||
- ptp-notification-psp-rolebinding-system-overrides.yaml
|
|
||||||
generatorOptions:
|
|
||||||
disableNameSuffixHash: true
|
|
@ -1,7 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2022 Wind River Systems, Inc.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
rolebindingNamespace: notification
|
|
||||||
serviceAccount: notification
|
|
@ -1,5 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2022 Wind River Systems, Inc.
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
Loading…
x
Reference in New Issue
Block a user