Add rAppmanager and Capifcore charts in ORAN_OOM 59/12659/2
authoraravind.est <aravindhan.a@est.tech>
Thu, 4 Apr 2024 11:51:46 +0000 (12:51 +0100)
committeraravind.est <aravindhan.a@est.tech>
Fri, 5 Apr 2024 08:16:44 +0000 (09:16 +0100)
rAppmanager and Capifcore charts added in ORAN_OOM.

Issue-ID: NONRTRIC-997
Change-Id: I93e0d4836605c08ada594e367931abf8d7721d54
Signed-off-by: aravind.est <aravindhan.a@est.tech>
17 files changed:
smo-install/helm-override/cnf/oran-override.yaml
smo-install/helm-override/default/oran-override.yaml
smo-install/helm-override/pythonsdk-tests/oran-override.yaml
smo-install/oran_oom/capifcore/Chart.yaml [new file with mode: 0644]
smo-install/oran_oom/capifcore/templates/deployment.yaml [new file with mode: 0644]
smo-install/oran_oom/capifcore/templates/service.yaml [new file with mode: 0644]
smo-install/oran_oom/capifcore/values.yaml [new file with mode: 0644]
smo-install/oran_oom/nonrtric/Chart.yaml
smo-install/oran_oom/nonrtric/values.yaml
smo-install/oran_oom/rappmanager/.helmignore [new file with mode: 0644]
smo-install/oran_oom/rappmanager/Chart.yaml [new file with mode: 0644]
smo-install/oran_oom/rappmanager/templates/configmap.yaml [new file with mode: 0644]
smo-install/oran_oom/rappmanager/templates/ingress.yaml [new file with mode: 0644]
smo-install/oran_oom/rappmanager/templates/secret.yaml [new file with mode: 0644]
smo-install/oran_oom/rappmanager/templates/service.yaml [new file with mode: 0644]
smo-install/oran_oom/rappmanager/templates/statefulset.yaml [new file with mode: 0644]
smo-install/oran_oom/rappmanager/values.yaml [new file with mode: 0644]

index 8ae50c0..52403d2 100644 (file)
@@ -1,5 +1,6 @@
 # Copyright © 2017 Amdocs, Bell Canada
 # Mofification Copyright © 2021 AT&T
+# Copyright (C) 2024 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.
@@ -40,6 +41,8 @@ nonrtric:
   installDmaapadapterservice: true
   installDmaapmediatorservice: true
   installHelmmanager: true
+  installrAppmanager: true
+  installCapifcore: true
   # override default mount path root directory
   # referenced by persistent volumes and log files
   persistence:
index 8ae50c0..574ef5d 100644 (file)
@@ -1,5 +1,6 @@
 # Copyright © 2017 Amdocs, Bell Canada
 # Mofification Copyright © 2021 AT&T
+# Modifcation Copyright (C) 2024 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.
@@ -40,6 +41,8 @@ nonrtric:
   installDmaapadapterservice: true
   installDmaapmediatorservice: true
   installHelmmanager: true
+  installrAppmanager: true
+  installCapifcore: true
   # override default mount path root directory
   # referenced by persistent volumes and log files
   persistence:
index f8e608b..9b0c2de 100644 (file)
@@ -1,5 +1,6 @@
 # Copyright © 2017 Amdocs, Bell Canada
 # Mofification Copyright © 2021 AT&T
+# Modification Copyright (C) 2024 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.
@@ -40,6 +41,8 @@ nonrtric:
   installDmaapadapterservice: true
   installDmaapmediatorservice: true
   installHelmmanager: true
+  installrAppmanager: true
+  installCapifcore: true
   # override default mount path root directory
   # referenced by persistent volumes and log files
   persistence:
diff --git a/smo-install/oran_oom/capifcore/Chart.yaml b/smo-install/oran_oom/capifcore/Chart.yaml
new file mode 100644 (file)
index 0000000..ab52c08
--- /dev/null
@@ -0,0 +1,26 @@
+################################################################################
+#   Copyright (C) 2023-2024 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.                                             #
+################################################################################
+
+apiVersion: v2
+appVersion: "2.0.0"
+description: A Helm chart for CAPIF core
+name: capifcore
+version: 1.0.0
+
+dependencies:
+  - name: nonrtric-common
+    version: ^2.0.0
+    repository: "@local"
\ No newline at end of file
diff --git a/smo-install/oran_oom/capifcore/templates/deployment.yaml b/smo-install/oran_oom/capifcore/templates/deployment.yaml
new file mode 100644 (file)
index 0000000..916f497
--- /dev/null
@@ -0,0 +1,32 @@
+################################################################################
+#   Copyright (C) 2024 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.                                             #
+################################################################################
+
+kind: Deployment
+apiVersion: apps/v1
+metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
+spec:
+  replicas: 1
+  selector: {{- include "common.selectors" . | nindent 4 }}
+  template:
+    metadata: {{- include "common.templateMetadata" . | nindent 6 }}
+    spec:
+      hostname: {{ include "common.name" . }}
+      containers:
+      - name:  {{ include "common.containername" . }}
+        image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
+        imagePullPolicy: {{ .Values.imagePullPolicy }}
+        ports: {{- include "common.containerPorts" . | nindent 8 }}
+        {{- include "common.tcpsocketProbes" . | nindent 8 }}
diff --git a/smo-install/oran_oom/capifcore/templates/service.yaml b/smo-install/oran_oom/capifcore/templates/service.yaml
new file mode 100644 (file)
index 0000000..5437660
--- /dev/null
@@ -0,0 +1,18 @@
+################################################################################
+#   Copyright (C) 2024 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.                                             #
+################################################################################
+
+
+{{ include "common.service" . }}
diff --git a/smo-install/oran_oom/capifcore/values.yaml b/smo-install/oran_oom/capifcore/values.yaml
new file mode 100644 (file)
index 0000000..8d9cf80
--- /dev/null
@@ -0,0 +1,44 @@
+#  ============LICENSE_START===============================================
+# Copyright (C) 2023-2024 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 CAPIF core.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+imagePullPolicy: IfNotPresent
+image:
+  registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
+  name: nonrtric-plt-capifcore
+  tag: 1.2.0
+service:
+  type: ClusterIP
+  ports:
+  - name: http
+    internalPort: "8090"
+    targetPort: "8090"
+liveness:
+  initialDelaySeconds: 20
+  periodSeconds: 10
+readiness:
+  initialDelaySeconds: 20
+  periodSeconds: 10
+persistence:
+  size: 2Gi
+  storageClassName: standard
+ingress:
+  enabled: false
+
+
index f879051..e7dd005 100644 (file)
@@ -87,3 +87,13 @@ dependencies:
     version: ~1.0.0
     repository: "@local"
     condition: nonrtric.installDmaapadapterservice
+
+  - name: rappmanager
+    version: ~1.0.0
+    repository: "@local"
+    condition: nonrtric.installrAppmanager
+
+  - name: capifcore
+    version: ~1.0.0
+    repository: "@local"
+    condition: nonrtric.installCapifcore
index 441ef31..f344441 100644 (file)
@@ -43,7 +43,7 @@ nonrtric:
   installDmaapmediatorservice: true
   installHelmmanager: true
   installrAppmanager: true
-  installDmeParticipant: true
+  installCapifcore: true
 
   volume1:
     size: 1Gi
diff --git a/smo-install/oran_oom/rappmanager/.helmignore b/smo-install/oran_oom/rappmanager/.helmignore
new file mode 100644 (file)
index 0000000..50af031
--- /dev/null
@@ -0,0 +1,22 @@
+# 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/
diff --git a/smo-install/oran_oom/rappmanager/Chart.yaml b/smo-install/oran_oom/rappmanager/Chart.yaml
new file mode 100644 (file)
index 0000000..4d971a2
--- /dev/null
@@ -0,0 +1,27 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2024 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: v2
+appVersion: "2.0.0"
+description: A Helm chart for rAppmanager
+name: rappmanager
+version: 1.0.0
+
+dependencies:
+  - name: nonrtric-common
+    version: ^2.0.0
+    repository: "@local"
\ No newline at end of file
diff --git a/smo-install/oran_oom/rappmanager/templates/configmap.yaml b/smo-install/oran_oom/rappmanager/templates/configmap.yaml
new file mode 100644 (file)
index 0000000..3b61b84
--- /dev/null
@@ -0,0 +1,18 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2024 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=================================================
+#
+
+{{ include "common.applicationConfigmap" . }}
diff --git a/smo-install/oran_oom/rappmanager/templates/ingress.yaml b/smo-install/oran_oom/rappmanager/templates/ingress.yaml
new file mode 100644 (file)
index 0000000..38cc191
--- /dev/null
@@ -0,0 +1,36 @@
+{{/*
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2024 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 (include "common.ingressEnabled" .) -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
+spec:
+  ingressClassName: {{ include "common.ingressClassName" . }}
+  rules:
+    - http:
+        paths:
+          - backend:
+              service:
+                name: {{ include "common.name" . }}
+                port:
+                  number: {{ (first .Values.service.ports).internalPort }}
+            path: "/rapps"
+            pathType: Prefix
+{{- end -}}
\ No newline at end of file
diff --git a/smo-install/oran_oom/rappmanager/templates/secret.yaml b/smo-install/oran_oom/rappmanager/templates/secret.yaml
new file mode 100644 (file)
index 0000000..fd2a1a3
--- /dev/null
@@ -0,0 +1,25 @@
+#  ============LICENSE_START===============================================\r
+#  Copyright (C) 2024 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" . }}-acm-secret\r
+type: Opaque\r
+data:\r
+    username: {{ .Values.rappmanager.acm.username }}\r
+    password: {{ .Values.rappmanager.acm.password }}\r
diff --git a/smo-install/oran_oom/rappmanager/templates/service.yaml b/smo-install/oran_oom/rappmanager/templates/service.yaml
new file mode 100644 (file)
index 0000000..581f669
--- /dev/null
@@ -0,0 +1,18 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2024 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=================================================
+#
+
+{{ include "common.service" . }}
diff --git a/smo-install/oran_oom/rappmanager/templates/statefulset.yaml b/smo-install/oran_oom/rappmanager/templates/statefulset.yaml
new file mode 100644 (file)
index 0000000..cc08202
--- /dev/null
@@ -0,0 +1,49 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2024 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: {{- include "common.resourceMetadata" . | nindent 2 }}
+spec:
+  serviceName: {{ include "common.name" . }}
+  replicas: 1
+  selector: {{- include "common.selectors" . | nindent 4 }}
+  template:
+    metadata: {{- include "common.templateMetadata" . | nindent 6 }}
+    spec:
+      hostname: {{ include "common.name" . }}
+      containers:
+      - name: {{ include "common.containername" . }}
+        image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
+        imagePullPolicy: {{ .Values.imagePullPolicy }}
+        ports: {{- include "common.containerPorts" . | nindent 8 }}
+        {{- include "common.tcpsocketProbes" . | nindent 8 }}
+        env:
+        - name: RAPPMANAGER_ACM_USERNAME
+          valueFrom:
+            secretKeyRef:
+              name: {{ include "common.name" . }}-acm-secret
+              key: username
+        - name: RAPPMANAGER_ACM_PASSWORD
+          valueFrom:
+            secretKeyRef:
+              name: {{ include "common.name" . }}-acm-secret
+              key: password
+        volumeMounts:
+        - name: {{ include "common.applicationConfigMountName" . }}
+          mountPath: /opt/app/rappmanager/config
+      volumes: {{- include "common.applicationConfigVolume" . | nindent 8 }}
\ No newline at end of file
diff --git a/smo-install/oran_oom/rappmanager/values.yaml b/smo-install/oran_oom/rappmanager/values.yaml
new file mode 100644 (file)
index 0000000..95e38f8
--- /dev/null
@@ -0,0 +1,84 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2023-2024 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.
+# This needs to be set up with ACM installation in order for the functionalities to operate.
+
+imagePullPolicy: IfNotPresent
+image:
+  registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
+  name: nonrtric-plt-rappmanager
+  tag: 0.0.1
+service:
+  type: ClusterIP
+  ports:
+  - name: http
+    internalPort: "8080"
+    targetPort: "8080"
+liveness:
+  initialDelaySeconds: 20
+  periodSeconds: 10
+readiness:
+  initialDelaySeconds: 20
+  periodSeconds: 10
+persistence:
+  size: 2Gi
+  storageClassName: standard
+ingress:
+  enabled: false
+
+rappmanager:
+  acm:
+    username: cnVudGltZVVzZXI=
+    password: emIhWHp0RzM0
+
+application:
+  rappmanager:
+    csarlocation: /opt/app/rappmanager/csar
+    acm:
+      baseurl: http://policy-clamp-runtime-acm.onap:6969/onap/policy/clamp/acm/v2/
+      maxRetries: 10
+      retryInterval: 2 #seconds
+    sme:
+      baseurl: http://capifcore.nonrtric:8090
+      providerBasePath: /api-provider-management/v1/
+      invokerBasePath: /api-invoker-management/v1/
+      publishApiBasePath: /published-apis/v1/
+      maxRetries: 3
+      retryInterval: 2 #seconds
+    dme:
+      baseurl: http://informationservice.nonrtric:9082
+
+    spring:
+      jackson:
+        default-property-inclusion: non_null
+
+    logging:
+      level:
+        root: INFO
+        com.oransc: INFO
+        org.apache.http: INFO
+        httpclient.wire: INFO
+        org.springframework.web.client.RestTemplate: INFO
+
+    management:
+      endpoints:
+        web:
+          exposure:
+            include: "*"
\ No newline at end of file