rAppmanager helm charts added.
This version uses snapshot repo/image and it needs to be modified later once the release image is available.
Issue-ID: NONRTRIC-953
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Change-Id: I6f83e8b4bcead410e92ba4aebea2659ffc31b3f7
#!/bin/bash
################################################################################
# Copyright (c) 2023 Nordix Foundation. #
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
helm repo remove local
$ROOT_DIR/prepare-common-templates
-COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice rappcatalogueenhancedservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager orufhrecovery ransliceassurance capifcore ranpm"
+COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice rappcatalogueenhancedservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager orufhrecovery ransliceassurance capifcore ranpm rappmanager"
for component in $COMPONENTS; do
echo "Packaging NONRTRIC component [$component]"
helm dep up $ROOT_DIR/../nonrtric/helm/$component
################################################################################
# Copyright (c) 2023 Nordix Foundation. #
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
installRansliceassurance: true
installCapifcore: true
installRanpm: true
+ installrAppmanager: true
volume1:
# Set the size to 0 if you do not need the volume (if you are using Dynamic Volume Provisioning)
tag: 1.1.0
env:
chart_museum_url: "http://chartmuseum:8080"
- repo_name: "capifcore"
\ No newline at end of file
+ repo_name: "capifcore"
+
+rappmanager:
+ rappmanager:
+ imagePullPolicy: IfNotPresent
+ image:
+ registry: "nexus3.o-ran-sc.org:10003/o-ran-sc"
+ name: nonrtric-plt-rappmanager
+ tag: 0.0.1-SNAPSHOT
+ service:
+ httpName: http
+ internalPort1: 8080
+ targetPort1: 8080
+ liveness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
+ readiness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
+ ingress:
+ enabled: true
+ acm:
+ username: cnVudGltZVVzZXI=
+ password: emIhWHp0RzM0
################################################################################
# Copyright (c) 2020 Nordix Foundation. #
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
version: ~1.0.0
repository: "@local"
condition: nonrtric.installCapifcore
+
+ - name: rappmanager
+ version: ~1.0.0
+ repository: "@local"
+ condition: nonrtric.installrAppmanager
################################################################################
# Copyright (c) 2020 Nordix Foundation. #
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
installOrufhrecovery: true
installRansliceassurance: true
installCapifcore: true
+ installrAppmanager: true
volume1:
size: 1Gi
--- /dev/null
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
--- /dev/null
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# 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
+#
+# http://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.
+# ============LICENSE_END=================================================
+#
+
+apiVersion: v1
+appVersion: "2.0.0"
+description: A Helm chart for rAppmanager
+name: rappmanager
+version: 1.0.0
--- /dev/null
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# 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
+#
+# http://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.
+# ============LICENSE_END=================================================
+#
+
+dependencies:
+ - name: nonrtric-common
+ version: ^2.0.0
+ repository: "@local"
--- /dev/null
+################################################################################
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved. #
+# #
+# 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 #
+# #
+# http://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. #
+################################################################################
+
+rappmanager:
+ csarlocation: /opt/app/rappmanager/csar
+ acm:
+ baseurl: http://policy-clamp-runtime-acm.default:6969/onap/policy/clamp/acm/v2/
+ maxRetries: 10
+ retryInterval: 2 #seconds
+ sme:
+ baseurl: http://capifcore:8090
+ providerBasePath: /api-provider-management/v1/
+ invokerBasePath: /api-invoker-management/v1/
+ publishApiBasePath: /published-apis/v1/
+ maxRetries: 3
+ retryInterval: 2 #seconds
+ dme:
+ baseurl: http://informationservice:9082
+
+spring:
+ jackson:
+ default-property-inclusion: non_null
+
+logging:
+ level:
+ root: INFO
+ com.oransc: DEBUG
+ org.apache.http: DEBUG
+ httpclient.wire: DEBUG
+ org.springframework.web.client.RestTemplate: TRACE
+
+management:
+ endpoints:
+ web:
+ exposure:
+ include: "*"
\ No newline at end of file
--- /dev/null
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# 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
+#
+# http://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.
+# ============LICENSE_END=================================================
+#
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "common.name.rappmanager" . }}-configmap-config
+ namespace: {{ include "common.namespace.nonrtric" . }}
+ labels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+data:
+{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
--- /dev/null
+{{/*
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# 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
+#
+# http://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.
+# ============LICENSE_END=================================================
+#
+*/}}
+
+{{- if .Values.rappmanager.ingress.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: {{ include "common.name.rappmanager" . }}
+ namespace: {{ include "common.namespace.nonrtric" . }}
+
+spec:
+ ingressClassName: {{ include "common.ingressClassName" . }}
+ rules:
+ - http:
+ paths:
+ - backend:
+ service:
+ name: {{ include "common.name.rappmanager" . }}
+ port:
+ number: {{ .Values.rappmanager.service.internalPort1 }}
+ path: "/rapps"
+ pathType: Prefix
+{{- end -}}
\ No newline at end of file
--- /dev/null
+# ============LICENSE_START===============================================\r
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.\r
+# ========================================================================\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+# ============LICENSE_END=================================================\r
+#\r
+\r
+apiVersion: v1\r
+kind: Secret\r
+metadata:\r
+ name: {{ include "common.name.rappmanager" . }}-acm-secret\r
+type: Opaque\r
+data:\r
+ username: {{ .Values.rappmanager.acm.username }}\r
+ password: {{ .Values.rappmanager.acm.password }}\r
--- /dev/null
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# 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
+#
+# http://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.
+# ============LICENSE_END=================================================
+#
+
+kind: Service
+apiVersion: v1
+metadata:
+ name: {{ include "common.name.rappmanager" . }}
+ namespace: {{ include "common.namespace.nonrtric" . }}
+ labels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+spec:
+ ports:
+ - name: {{ index .Values.rappmanager.service.httpName }}
+ port: {{ .Values.rappmanager.service.internalPort1 }}
+ targetPort: {{ .Values.rappmanager.service.targetPort1 }}
+ protocol: TCP
+ selector:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
+ release: {{ .Release.Name }}
+ type: ClusterIP
--- /dev/null
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# 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
+#
+# http://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.
+# ============LICENSE_END=================================================
+#
+
+kind: StatefulSet
+apiVersion: apps/v1
+metadata:
+ name: {{ include "common.name.rappmanager" . }}
+ namespace: {{ include "common.namespace.nonrtric" . }}
+ generation: 1
+ labels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+ annotations:
+ deployment.kubernetes.io/revision: '1'
+spec:
+ serviceName: {{ include "common.name.rappmanager" . }}
+ replicas: 1
+ selector:
+ matchLabels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
+ release: {{ .Release.Name }}
+ template:
+ metadata:
+ labels:
+ app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
+ release: {{ .Release.Name }}
+ spec:
+ hostname: {{ include "common.name.rappmanager" . }}
+ containers:
+ - name: {{ include "common.container.rappmanager" . }}
+ image: {{ .Values.rappmanager.image.registry }}/{{ .Values.rappmanager.image.name }}:{{ .Values.rappmanager.image.tag }}
+ imagePullPolicy: {{ .Values.rappmanager.imagePullPolicy }}
+ ports:
+ - containerPort: {{ .Values.rappmanager.service.targetPort1 }}
+ protocol: TCP
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.rappmanager.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.rappmanager.liveness.initialDelaySeconds }}
+ periodSeconds: {{ .Values.rappmanager.liveness.periodSeconds }}
+ livenessProbe:
+ tcpSocket:
+ port: {{ .Values.rappmanager.service.targetPort1 }}
+ initialDelaySeconds: {{ .Values.rappmanager.liveness.initialDelaySeconds }}
+ periodSeconds: {{ .Values.rappmanager.liveness.periodSeconds }}
+ env:
+ - name: RAPPMANAGER_ACM_USERNAME
+ valueFrom:
+ secretKeyRef:
+ name: {{ include "common.name.rappmanager" . }}-acm-secret
+ key: username
+ - name: RAPPMANAGER_ACM_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: {{ include "common.name.rappmanager" . }}-acm-secret
+ key: password
+ volumeMounts:
+ - name: {{ include "common.name.rappmanager" . }}-rappmanager-config
+ mountPath: /opt/app/rappmanager/config
+ volumes:
+ - name: {{ include "common.name.rappmanager" . }}-rappmanager-config
+ configMap:
+ name: {{ include "common.name.rappmanager" . }}-configmap-config
--- /dev/null
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# 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
+#
+# http://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.
+# ============LICENSE_END=================================================
+#
+
+# Default values for rApp Manager.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+rappmanager:
+ imagePullPolicy: IfNotPresent
+ image:
+ registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
+ name: nonrtric-plt-rappmanager
+ tag: 1.0.0
+ service:
+ httpName: http
+ internalPort1: 8080
+ targetPort1: 8080
+ liveness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
+ readiness:
+ initialDelaySeconds: 20
+ periodSeconds: 10
+ persistence:
+ size: 2Gi
+ storageClassName: standard
+ ingress:
+ enabled: false
+ acm:
+ username: cnVudGltZVVzZXI=
+ password: emIhWHp0RzM0
--- /dev/null
+################################################################################
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved. #
+# #
+# 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 #
+# #
+# http://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. #
+################################################################################
+
+{{- define "common.name.rappmanager" -}}
+ {{- printf "rappmanager" -}}
+{{- end -}}
+
+{{- define "common.container.rappmanager" -}}
+ {{- $name := ( include "common.name.rappmanager" . ) -}}
+ {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}