csm-application-mobility: code removal
Dell has communicated that App Mobility feature is becoming a premium offering as part of APEX Navigator for Kubernetes and the App Mobility license will not be generally available. Saying so, all code related to csm-application-mobility is being removed. Test Plan: PASS: All packages built PASS: Upload/apply/remove/delete/update dell-storage app in AIO-SX lab. PASS: Check that csm-application-mobility is not present on dell-storage's helm-override-list Story: 2010693 Task: 50205 Change-Id: I28374e338af3cecde549309a45d9878629a5a63d Signed-off-by: Guilherme Costa <guilherme.costa@windriver.com>
This commit is contained in:
parent
80ca831260
commit
d90a4ae9a9
@ -3,7 +3,6 @@ helm-charts/upstream/csi-powermax-helm
|
||||
helm-charts/upstream/csi-powerscale-helm
|
||||
helm-charts/upstream/csi-powerstore-helm
|
||||
helm-charts/upstream/csi-unity-helm
|
||||
helm-charts/upstream/csm-application-mobility-helm
|
||||
helm-charts/upstream/csm-observability-helm
|
||||
helm-charts/upstream/csm-replication-helm
|
||||
python3-k8sapp-dell-storage
|
||||
|
@ -1,40 +0,0 @@
|
||||
#
|
||||
# Copyright 2017 The Openstack-Helm Authors.
|
||||
#
|
||||
# Copyright (c) 2023 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# It's necessary to set this because some environments don't link sh -> bash.
|
||||
SHELL := /bin/bash
|
||||
TASK := build
|
||||
|
||||
EXCLUDES := doc tests tools logs tmp
|
||||
CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
|
||||
|
||||
.PHONY: $(EXCLUDES) $(CHARTS)
|
||||
|
||||
all: $(CHARTS)
|
||||
|
||||
$(CHARTS):
|
||||
@if [ -d $@ ]; then \
|
||||
echo; \
|
||||
echo "===== Processing [$@] chart ====="; \
|
||||
make $(TASK)-$@; \
|
||||
fi
|
||||
|
||||
init-%:
|
||||
if [ -f $*/Makefile ]; then make -B $*; fi
|
||||
|
||||
lint-%: init-%
|
||||
if [ -d $* ]; then helm lint $*; fi
|
||||
|
||||
build-%: lint-%
|
||||
if [ -d $* ]; then helm package --version $(CHART_VERSION) $*; fi
|
||||
|
||||
clean:
|
||||
rm -f */templates/_partials.tpl */templates/_globals.tpl
|
||||
rm -rf */charts */tmpcharts
|
||||
|
||||
%:
|
||||
@:
|
@ -1,44 +0,0 @@
|
||||
From 631c7fc78b9e31f29e645872cbfb5c32c7afb43b Mon Sep 17 00:00:00 2001
|
||||
From: gornaghi <gustavo.ornaghiantunes@windriver.com>
|
||||
Date: Mon, 4 Mar 2024 10:24:11 -0300
|
||||
Subject: [PATCH] velero: fix pull velero image error
|
||||
|
||||
This patch consists of adding imagePullSecrets with name
|
||||
default-registry-key only in ServiceAccounts.
|
||||
It's necessary because without it the system can't use the
|
||||
images from the registry local.
|
||||
|
||||
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
---
|
||||
.../charts/velero/templates/serviceaccount-server.yaml | 2 ++
|
||||
.../velero/templates/upgrade-crds/serviceaccount-upgrade.yaml | 2 ++
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/charts/csm-application-mobility/charts/velero/templates/serviceaccount-server.yaml b/charts/csm-application-mobility/charts/velero/templates/serviceaccount-server.yaml
|
||||
index c295364..785c35f 100644
|
||||
--- a/charts/csm-application-mobility/charts/velero/templates/serviceaccount-server.yaml
|
||||
+++ b/charts/csm-application-mobility/charts/velero/templates/serviceaccount-server.yaml
|
||||
@@ -8,6 +8,8 @@ metadata:
|
||||
annotations:
|
||||
{{ toYaml .Values.serviceAccount.server.annotations | nindent 4 }}
|
||||
{{- end }}
|
||||
+imagePullSecrets:
|
||||
+- name: default-registry-key
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "velero.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
diff --git a/charts/csm-application-mobility/charts/velero/templates/upgrade-crds/serviceaccount-upgrade.yaml b/charts/csm-application-mobility/charts/velero/templates/upgrade-crds/serviceaccount-upgrade.yaml
|
||||
index 93e3f1e..8581e9e 100644
|
||||
--- a/charts/csm-application-mobility/charts/velero/templates/upgrade-crds/serviceaccount-upgrade.yaml
|
||||
+++ b/charts/csm-application-mobility/charts/velero/templates/upgrade-crds/serviceaccount-upgrade.yaml
|
||||
@@ -11,6 +11,8 @@ metadata:
|
||||
{{- if .Values.serviceAccount.server.annotations }}
|
||||
{{ toYaml .Values.serviceAccount.server.annotations | nindent 4 }}
|
||||
{{- end }}
|
||||
+imagePullSecrets:
|
||||
+- name: default-registry-key
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "velero.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
--
|
||||
2.34.1
|
@ -1,39 +0,0 @@
|
||||
From ab9c01de772e77943c29fe11c2b462682dc65ea7 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Date: Mon, 4 Mar 2024 11:35:43 -0300
|
||||
Subject: [PATCH] velero: add label app.starlingx.io/component
|
||||
|
||||
This patch consists of adding the app.starlingx.io/component label in all pods.
|
||||
|
||||
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
---
|
||||
.../charts/velero/templates/deployment.yaml | 1 +
|
||||
.../charts/velero/templates/node-agent-daemonset.yaml | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/charts/csm-application-mobility/charts/velero/templates/deployment.yaml b/charts/csm-application-mobility/charts/velero/templates/deployment.yaml
|
||||
index 0468cba..b0df376 100644
|
||||
--- a/charts/csm-application-mobility/charts/velero/templates/deployment.yaml
|
||||
+++ b/charts/csm-application-mobility/charts/velero/templates/deployment.yaml
|
||||
@@ -10,6 +10,7 @@ metadata:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
+ app.starlingx.io/component: {{ index .Values "app.starlingx.io/component" }}
|
||||
app.kubernetes.io/name: {{ include "velero.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
diff --git a/charts/csm-application-mobility/charts/velero/templates/node-agent-daemonset.yaml b/charts/csm-application-mobility/charts/velero/templates/node-agent-daemonset.yaml
|
||||
index 104f955..cc99292 100644
|
||||
--- a/charts/csm-application-mobility/charts/velero/templates/node-agent-daemonset.yaml
|
||||
+++ b/charts/csm-application-mobility/charts/velero/templates/node-agent-daemonset.yaml
|
||||
@@ -11,6 +11,7 @@ metadata:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
+ app.starlingx.io/component: {{ index .Values "app.starlingx.io/component" }}
|
||||
app.kubernetes.io/name: {{ include "velero.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
--
|
||||
2.34.1
|
@ -1,5 +0,0 @@
|
||||
csm-application-mobility-helm (0.3-0) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com> Thu, 30 Mar 2023 15:15:00 +0000
|
@ -1,15 +0,0 @@
|
||||
Source: csm-application-mobility-helm
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
helm
|
||||
Standards-Version: 4.5.1
|
||||
Homepage: https://www.starlingx.io
|
||||
|
||||
Package: csm-application-mobility-helm
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}
|
||||
Description: StarlingX Dell CSM Application Mobility Helm Charts
|
||||
This package contains helm charts for the Dell CSM Application Mobility.
|
@ -1,41 +0,0 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: csm-observability-helm
|
||||
Source: https://opendev.org/starlingx/app-dell-storage/
|
||||
|
||||
Files: *
|
||||
Copyright: (c) 2023 Wind River Systems, Inc
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
||||
|
||||
# If you want to use GPL v2 or later for the /debian/* files use
|
||||
# the following clauses, or change it to suit. Delete these two lines
|
||||
Files: debian/*
|
||||
Copyright: 2022 Wind River Systems, Inc
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
@ -1 +0,0 @@
|
||||
usr/lib/helm/*
|
@ -1,37 +0,0 @@
|
||||
From 96f514f9d92d22f5f8030926b5165db13a0739fc Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Date: Mon, 15 May 2023 10:54:16 -0300
|
||||
Subject: [PATCH] csm-application-mobility: update dependencies
|
||||
|
||||
This patch consists of removing the cert-manager dependency and
|
||||
replacing the velero repository.
|
||||
It was needed removing because cert-manager already exists
|
||||
by default in the system avoiding a new install.
|
||||
|
||||
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com>
|
||||
---
|
||||
charts/csm-application-mobility/Chart.yaml | 8 +-------
|
||||
1 file changed, 1 insertion(+), 7 deletions(-)
|
||||
|
||||
diff --git a/charts/csm-application-mobility/Chart.yaml b/charts/csm-application-mobility/Chart.yaml
|
||||
index f1f6267..71a5ff0 100644
|
||||
--- a/charts/csm-application-mobility/Chart.yaml
|
||||
+++ b/charts/csm-application-mobility/Chart.yaml
|
||||
@@ -13,13 +13,7 @@ version: 0.3.0
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
# It is recommended to use it with quotes.
|
||||
appVersion: "0.3.0"
|
||||
-
|
||||
dependencies:
|
||||
-- name: cert-manager
|
||||
- version: 1.8.2
|
||||
- repository: https://charts.jetstack.io
|
||||
- condition: cert-manager.enabled
|
||||
- name: velero
|
||||
version: 2.29.8
|
||||
- repository: https://vmware-tanzu.github.io/helm-charts
|
||||
- condition: velero.enabled
|
||||
+ repository: file://charts/velero
|
||||
--
|
||||
2.25.1
|
@ -1,28 +0,0 @@
|
||||
From 3f39fa1828adaed869bde71dfa5c36e196ac11ae Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Date: Tue, 16 May 2023 09:09:12 -0300
|
||||
Subject: [PATCH] csm-application-mobility: fix pull image error
|
||||
|
||||
This patch consists of adding imagePullSecrets with name
|
||||
default-registry-key only in ServiceAccounts.
|
||||
It's necessary because without it the system can't use the
|
||||
images from the registry local.
|
||||
|
||||
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com>
|
||||
---
|
||||
.../v1_serviceaccount_app-mobility-controller-manager.yaml | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/charts/csm-application-mobility/templates/v1_serviceaccount_app-mobility-controller-manager.yaml b/charts/csm-application-mobility/templates/v1_serviceaccount_app-mobility-controller-manager.yaml
|
||||
index a9c5206..2d82da1 100644
|
||||
--- a/charts/csm-application-mobility/templates/v1_serviceaccount_app-mobility-controller-manager.yaml
|
||||
+++ b/charts/csm-application-mobility/templates/v1_serviceaccount_app-mobility-controller-manager.yaml
|
||||
@@ -3,3 +3,5 @@ kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-controller-manager
|
||||
namespace: {{ include "custom.namespace" . }}
|
||||
+imagePullSecrets:
|
||||
+ - name: default-registry-key
|
||||
--
|
||||
2.25.1
|
@ -1,44 +0,0 @@
|
||||
From 92fa2850b5204482962740ec326a9ae938e3dd62 Mon Sep 17 00:00:00 2001
|
||||
From: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com>
|
||||
Date: Tue, 16 May 2023 14:55:15 -0300
|
||||
Subject: [PATCH] csm-application-mobility: support dynamic rbac value
|
||||
|
||||
This patch consists of changing the rbac image value from static to dynamic
|
||||
allowing the system reads the image in values.yaml and add the registry local prefix.
|
||||
|
||||
Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com>
|
||||
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
---
|
||||
.../apps_v1_deployment_app-mobility-controller-manager.yaml | 2 +-
|
||||
charts/csm-application-mobility/values.yaml | 3 +++
|
||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml b/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml
|
||||
index ec4f9dd..b353fe2 100644
|
||||
--- a/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml
|
||||
+++ b/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml
|
||||
@@ -23,7 +23,7 @@ spec:
|
||||
- --upstream=http://127.0.0.1:8080/
|
||||
- --logtostderr=true
|
||||
- --v=10
|
||||
- image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
|
||||
+ image: {{ .Values.rbac.image }}
|
||||
name: kube-rbac-proxy
|
||||
ports:
|
||||
- containerPort: 8443
|
||||
diff --git a/charts/csm-application-mobility/values.yaml b/charts/csm-application-mobility/values.yaml
|
||||
index 5e091ed..40be3a6 100644
|
||||
--- a/charts/csm-application-mobility/values.yaml
|
||||
+++ b/charts/csm-application-mobility/values.yaml
|
||||
@@ -10,6 +10,9 @@ image:
|
||||
controller:
|
||||
image: dellemc/csm-application-mobility-controller:v0.3.0
|
||||
|
||||
+rbac:
|
||||
+ image: gcr.io/kubebuilder/kube-rbac-proxy:v0.11.0
|
||||
+
|
||||
# csm-application-mobility requires cert-manager. If cert-manager is not already present in cluster, set enabled to true to install it too.
|
||||
cert-manager:
|
||||
enabled: false
|
||||
--
|
||||
2.25.1
|
@ -1,39 +0,0 @@
|
||||
From d50feca9077e5edb57dcc9a5c672194a2d675228 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Date: Tue, 27 Jun 2023 12:20:55 -0300
|
||||
Subject: [PATCH] csm-application-mobility: add label app.starlingx.io/component
|
||||
|
||||
This patch consists of changing the strategy from the Deployment resource and
|
||||
add the app.starlingx.io/component label in all pods.
|
||||
The strategy was needed changing because in the reapply the old replicasets
|
||||
were not being deleted. The default value was rollingUpdate.
|
||||
In this case, it doesn't effect functionality.
|
||||
|
||||
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com>
|
||||
---
|
||||
.../apps_v1_deployment_app-mobility-controller-manager.yaml | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml b/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml
|
||||
index b353fe2..5150fac 100644
|
||||
--- a/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml
|
||||
+++ b/charts/csm-application-mobility/templates/apps_v1_deployment_app-mobility-controller-manager.yaml
|
||||
@@ -10,12 +10,15 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
control-plane: controller-manager
|
||||
+ strategy:
|
||||
+ type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: manager
|
||||
labels:
|
||||
control-plane: controller-manager
|
||||
+ app.starlingx.io/component: {{ index .Values "app.starlingx.io/component" }}
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
--
|
||||
2.25.1
|
@ -1,41 +0,0 @@
|
||||
From 973347dbc09bad42bf2ba957c96e70987b7b046c Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
Date: Tue, 5 Mar 2024 10:12:52 -0300
|
||||
Subject: [PATCH] csm-application-mobility: remove default values for new
|
||||
velero
|
||||
|
||||
This patch consists of removing the default values that were default
|
||||
for old velero version, in new velero 6.0.0 these values need be
|
||||
removed for helm
|
||||
|
||||
Signed-off-by: Gustavo Ornaghi Antunes <gustavo.ornaghiantunes@windriver.com>
|
||||
---
|
||||
charts/csm-application-mobility/values.yaml | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/charts/csm-application-mobility/values.yaml b/charts/csm-application-mobility/values.yaml
|
||||
index a07282e..a9f59f4 100644
|
||||
--- a/charts/csm-application-mobility/values.yaml
|
||||
+++ b/charts/csm-application-mobility/values.yaml
|
||||
@@ -32,11 +32,7 @@ objectstore:
|
||||
velero:
|
||||
enabled: true
|
||||
use-volume-snapshots: false
|
||||
- deployRestic: true
|
||||
cleanUpCRDs: true
|
||||
- restic:
|
||||
- # Set to true if installing on OpenShift
|
||||
- privileged: false
|
||||
|
||||
credentials:
|
||||
# Optionally, specify the name of the pre-created secret in the release namespace that holds the object store credentials. Either this or secretContents should be specified.
|
||||
@@ -53,7 +49,6 @@ velero:
|
||||
# Based on the objectstore being used , the velero plugin and its configuration may need to change! Below is the sample configuration for using aws object store.
|
||||
# GCP and Azure plugins configuration are different. See more details at: https://github.com/vmware-tanzu/helm-charts/blob/main/charts/velero/README.md
|
||||
configuration:
|
||||
- provider: aws
|
||||
backupStorageLocation:
|
||||
name: default
|
||||
bucket: velero-bucket
|
||||
--
|
||||
2.34.1
|
@ -1,5 +0,0 @@
|
||||
0001-csm-application-mobility-update-dependencies.patch
|
||||
0002-csm-application-mobility-fix-pull-image-error.patch
|
||||
0003-csm-application-mobility-support-dynamic-rbac-value.patch
|
||||
0004-csm-application-mobility-add-label-app.starlingx.io-component.patch
|
||||
0005-csm-application-mobility-remove-default-values-for-n.patch
|
@ -1,36 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
#export DH_VERBOSE = 1
|
||||
|
||||
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
||||
export PATCH_VERSION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
||||
export CHART_BASE_VERSION = $(shell echo $(DEB_VERSION) | sed 's/-/./' | cut -d '.' -f 1-3)
|
||||
export CHART_VERSION = $(CHART_BASE_VERSION)+STX.$(PATCH_VERSION)
|
||||
|
||||
export ROOT = debian/tmp
|
||||
export APP_FOLDER = $(ROOT)/usr/lib/helm
|
||||
export VELERO_NAME_TGZ = velero-6.0.0.tgz
|
||||
export VELERO_DIR = charts/csm-application-mobility/charts
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
|
||||
# including velero as a subchart
|
||||
mkdir -p $(VELERO_DIR)
|
||||
tar xzf $(VELERO_NAME_TGZ) -C $(VELERO_DIR)
|
||||
|
||||
# patching velero
|
||||
patch --no-backup-if-mismatch --fuzz=0 -p1 < 0001-velero-fix-pull-velero-image-error.patch
|
||||
patch --no-backup-if-mismatch --fuzz=0 -p1 < 0002-velero-add-label-app.starlingx.io-component.patch
|
||||
|
||||
# building csm
|
||||
cp Makefile charts
|
||||
cd charts && make CHART_VERSION=$(CHART_VERSION) csm-application-mobility
|
||||
|
||||
override_dh_auto_install:
|
||||
# Install the app tar file.
|
||||
install -d -m 755 $(APP_FOLDER)
|
||||
install -p -D -m 755 charts/csm-application-mobility*.tgz $(APP_FOLDER)
|
||||
|
||||
override_dh_auto_test:
|
@ -1 +0,0 @@
|
||||
3.0 (quilt)
|
@ -1,22 +0,0 @@
|
||||
---
|
||||
debname: csm-application-mobility-helm
|
||||
debver: 0.3-0
|
||||
dl_path:
|
||||
name: csm-application-mobility-0.3.0.tar.gz
|
||||
url: https://github.com/dell/helm-charts/archive/csm-application-mobility-0.3.0.tar.gz
|
||||
sha256sum: 30b7852326d4e306d863d9d021acfe478d2d75f24ca7f68b3a46cec757d9b8d3
|
||||
dl_files:
|
||||
velero-6.0.0.tgz:
|
||||
topdir: null
|
||||
url: https://github.com/vmware-tanzu/helm-charts/releases/download/velero-6.0.0/velero-6.0.0.tgz
|
||||
sha256sum: 52446304b0085eb29d7c2a2d9b5b0b070d0388340d33856d32b2d5c773b8045a
|
||||
src_files:
|
||||
- csm-application-mobility-helm/files/Makefile
|
||||
- csm-application-mobility-helm/files/velero/0001-velero-fix-pull-velero-image-error.patch
|
||||
- csm-application-mobility-helm/files/velero/0002-velero-add-label-app.starlingx.io-component.patch
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
stx_patch: 0
|
||||
GITREVCOUNT:
|
||||
BASE_SRCREV: 8db8f63466df064069133380243443e3822fa8ce
|
||||
SRC_DIR: ${MY_REPO}/stx/app-dell-storage/helm-charts/upstream/csm-application-mobility-helm
|
@ -16,7 +16,6 @@ HELM_CHART_CSI_POWERSCALE = 'csi-powerscale'
|
||||
HELM_CHART_CSI_UNITY = 'csi-unity'
|
||||
HELM_CHART_CSM_REPLICATION = 'csm-replication'
|
||||
HELM_CHART_CSM_OBSERVABILITY = 'csm-observability'
|
||||
HELM_CHART_CSM_APPLICATION_MOBILITY = 'csm-application-mobility'
|
||||
|
||||
# FluxCD
|
||||
FLUXCD_HELMRELEASE_CSI_POWERFLEX = 'csi-powerflex'
|
||||
@ -26,7 +25,6 @@ FLUXCD_HELMRELEASE_CSI_POWERSCALE = 'csi-powerscale'
|
||||
FLUXCD_HELMRELEASE_CSI_UNITY = 'csi-unity'
|
||||
FLUXCD_HELMRELEASE_CSM_REPLICATION = 'csm-replication'
|
||||
FLUXCD_HELMRELEASE_CSM_OBSERVABILITY = 'csm-observability'
|
||||
FLUXCD_HELMRELEASE_CSM_APPLICATION_MOBILITY = 'csm-application-mobility'
|
||||
|
||||
# Label
|
||||
HELM_COMPONENT_LABEL = 'app.starlingx.io/component'
|
||||
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2023 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
from sysinv.common import exception
|
||||
|
||||
from k8sapp_dell_storage.common import constants as app_constants
|
||||
from k8sapp_dell_storage.helm import storage
|
||||
|
||||
|
||||
class CSMApplicationMobilityHelm(storage.StorageBaseHelm):
|
||||
""" Class to encapsulate helm operations for the CSM Application Mobility chart. """
|
||||
|
||||
CHART = app_constants.HELM_CHART_CSM_APPLICATION_MOBILITY
|
||||
HELM_RELEASE = app_constants.FLUXCD_HELMRELEASE_CSM_APPLICATION_MOBILITY
|
||||
SERVICE_NAME = app_constants.HELM_APP_DELL_STORAGE
|
||||
|
||||
def get_overrides(self, namespace=None):
|
||||
|
||||
replicas = self._num_replicas_for_platform_app()
|
||||
|
||||
overrides = {
|
||||
app_constants.HELM_NS_DELL_STORAGE: {
|
||||
"replicaCount": replicas
|
||||
}
|
||||
}
|
||||
|
||||
if namespace in self.SUPPORTED_NAMESPACES:
|
||||
return overrides[namespace]
|
||||
elif namespace:
|
||||
raise exception.InvalidHelmNamespace(chart=self.CHART,
|
||||
namespace=namespace)
|
||||
else:
|
||||
return overrides
|
@ -37,10 +37,9 @@ systemconfig.helm_plugins.dell_storage =
|
||||
002_csi-unity = k8sapp_dell_storage.helm.csi_unity:CSIUnityHelm
|
||||
003_csm-replication = k8sapp_dell_storage.helm.csm_replication:CSMReplicationHelm
|
||||
004_csm-observability = k8sapp_dell_storage.helm.csm_observability:CSMObservabilityHelm
|
||||
005_csm-application-mobility = k8sapp_dell_storage.helm.csm_application_mobility:CSMApplicationMobilityHelm
|
||||
006_csi-powerscale = k8sapp_dell_storage.helm.csi_powerscale:CSIPowerScaleHelm
|
||||
007_csi-powerflex = k8sapp_dell_storage.helm.csi_powerflex:CSIPowerFlexHelm
|
||||
008_csi-powermax = k8sapp_dell_storage.helm.csi_powermax:CSIPowerMaxHelm
|
||||
005_csi-powerscale = k8sapp_dell_storage.helm.csi_powerscale:CSIPowerScaleHelm
|
||||
006_csi-powerflex = k8sapp_dell_storage.helm.csi_powerflex:CSIPowerFlexHelm
|
||||
007_csi-powermax = k8sapp_dell_storage.helm.csi_powermax:CSIPowerMaxHelm
|
||||
|
||||
systemconfig.fluxcd.kustomize_ops =
|
||||
dell-storage = k8sapp_dell_storage.kustomize.kustomize_dell_storage:DellStorageFluxCDKustomizeOperator
|
||||
|
@ -13,7 +13,6 @@ Build-Depends: debhelper-compat (= 13),
|
||||
csi-unity-helm,
|
||||
csm-replication-helm,
|
||||
csm-observability-helm,
|
||||
csm-application-mobility-helm,
|
||||
build-info
|
||||
Standards-Version: 4.5.1
|
||||
Homepage: https://www.starlingx.io
|
||||
|
@ -9,7 +9,6 @@ disabled_charts:
|
||||
- csi-powermax
|
||||
- csi-powerscale
|
||||
- csi-unity
|
||||
- csm-application-mobility
|
||||
- csm-observability
|
||||
- csm-replication
|
||||
|
||||
|
@ -1,46 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2023-2024 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
app.starlingx.io/component: platform
|
||||
|
||||
controller:
|
||||
image: docker.io/dellemc/csm-application-mobility-controller:v0.3.0
|
||||
|
||||
licenseName: csm-application-mobility-license
|
||||
|
||||
objectstore:
|
||||
secretName: velero-cloud-credentials
|
||||
|
||||
veleroNamespace: dell-storage
|
||||
|
||||
velero:
|
||||
enabled: true
|
||||
app.starlingx.io/component: platform
|
||||
credentials:
|
||||
name: velero-cloud-credentials
|
||||
image:
|
||||
repository: docker.io/velero/velero
|
||||
tag: v1.13.0
|
||||
initContainers:
|
||||
- name: dell-custom-velero-plugin
|
||||
image: docker.io/dellemc/csm-application-mobility-velero-plugin:v0.3.0
|
||||
volumeMounts:
|
||||
- mountPath: /target
|
||||
name: plugins
|
||||
kubectl:
|
||||
image:
|
||||
repository: docker.io/bitnami/kubectl
|
||||
tag: latest
|
||||
tolerations:
|
||||
- key: "node-role.kubernetes.io/master"
|
||||
operator: "Exists"
|
||||
effect: "NoSchedule"
|
||||
- key: "node-role.kubernetes.io/control-plane"
|
||||
operator: "Exists"
|
||||
effect: "NoSchedule"
|
||||
|
||||
rbac:
|
||||
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.11.0
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2023-2024 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
apiVersion: "helm.toolkit.fluxcd.io/v2beta1"
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: csm-application-mobility
|
||||
labels:
|
||||
chart_group: dell-storage-charts
|
||||
spec:
|
||||
releaseName: csm-application-mobility
|
||||
chart:
|
||||
spec:
|
||||
chart: csm-application-mobility
|
||||
version: REPLACE_HELM_CHART_VERSION
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: stx-platform
|
||||
interval: 1m
|
||||
timeout: 30m
|
||||
test:
|
||||
enable: false
|
||||
install:
|
||||
disableHooks: false
|
||||
upgrade:
|
||||
disableHooks: false
|
||||
valuesFrom:
|
||||
- kind: Secret
|
||||
name: csm-application-mobility-static-overrides
|
||||
valuesKey: csm-application-mobility-static-overrides.yaml
|
||||
- kind: Secret
|
||||
name: csm-application-mobility-system-overrides
|
||||
valuesKey: csm-application-mobility-system-overrides.yaml
|
@ -1,18 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2023 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
namespace: dell-storage
|
||||
resources:
|
||||
- helmrelease.yaml
|
||||
secretGenerator:
|
||||
- name: csm-application-mobility-static-overrides
|
||||
files:
|
||||
- csm-application-mobility-static-overrides.yaml
|
||||
- name: csm-application-mobility-system-overrides
|
||||
files:
|
||||
- csm-application-mobility-system-overrides.yaml
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
@ -14,6 +14,5 @@ resources:
|
||||
- csi-powerscale
|
||||
- csi-powerstore
|
||||
- csi-unity
|
||||
- csm-application-mobility
|
||||
- csm-observability
|
||||
- csm-replication
|
||||
|
Loading…
Reference in New Issue
Block a user