From: BjornMagnussonXA Date: Fri, 10 Dec 2021 09:13:03 +0000 (+0100) Subject: Updated helm charts for e-release X-Git-Tag: f-release~26^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=commitdiff_plain;h=326fd8c271cde82ade05d81b77859a002eecd33b Updated helm charts for e-release Still staging images, need to be switched to release image when release is made. Issue-ID: NONRTRIC-622 Signed-off-by: BjornMagnussonXA Change-Id: I6604221cf9da0be36fb504cc753ef92188ca1ad4 --- diff --git a/bin/deploy-nonrtric b/bin/deploy-nonrtric index ac48e9f0..775a311e 100755 --- a/bin/deploy-nonrtric +++ b/bin/deploy-nonrtric @@ -29,7 +29,7 @@ else -f) OVERRIDEYAML=$2 shift - ;; + ;; *) echo "Option $1 not recognized" ;; # In case you typed a different option other than a,b,c esac @@ -106,7 +106,7 @@ rm $HELM_LOCAL_REPO/* helm repo remove local $ROOT_DIR/prepare-common-templates -COMPONENTS="controlpanel a1controller a1simulator policymanagementservice enrichmentservice rappcatalogueservice nonrtricgateway dmaapadapterservice" +COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager" for component in $COMPONENTS; do echo "Packaging NONRTRIC component [$component]" helm dep up $ROOT_DIR/../nonrtric/helm/$component diff --git a/bin/undeploy-nonrtric b/bin/undeploy-nonrtric index 05eac1cb..b3b2cc91 100755 --- a/bin/undeploy-nonrtric +++ b/bin/undeploy-nonrtric @@ -18,7 +18,7 @@ # This script to undeploy the NONRTRIC -COMPONENTS="controlpanel a1controller a1simulator policymanagementservice enrichmentservice rappcatalogueservice nonrtricgateway dmaapadapterservice" +COMPONENTS="controlpanel a1controller a1simulator policymanagementservice informationservice rappcatalogueservice nonrtricgateway dmaapadapterservice dmaapmediatorservice helmmanager" RECIPE_NAMESPACE=$(kubectl get cm --all-namespaces | grep nonrtric-recipe | awk '{print $1}') kubectl get configmap -n $RECIPE_NAMESPACE nonrtric-recipe -o jsonpath='{.data.recipe}' > /tmp/recipe.yaml diff --git a/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml b/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml index 24f3a8ff..73de17eb 100644 --- a/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml +++ b/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml @@ -22,14 +22,16 @@ # Here you can enable inclusion or exclusion of each component. A not installed component will not be installed. nonrtric: installPms: true - installA1controller: false - installA1simulator: false + installA1controller: true + installA1simulator: true installControlpanel: true - installEnrichmentservice: true - installRappcatalogueservice: false + installInformationservice: true + installRappcatalogueservice: true installNonrtricgateway: true installKong: false - installDmaapAdapterservice: true + installDmaapadapterservice: true + installDmaapmediatorservice: true + installHelmmanager: true volume1: # Set the size to 0 if you do not need the volume (if you are using Dynamic Volume Provisioning) size: 2Gi @@ -37,7 +39,10 @@ nonrtric: volume2: # Set the size to 0 if you do not need the volume (if you are using Dynamic Volume Provisioning) size: 2Gi - storageClassName: ecs-storage + storageClassName: ics-storage + volume3: + size: 1Gi + storageClassName: helmmanager-storage common: releasePrefix: r3-dev-nonrtric @@ -45,12 +50,13 @@ common: namespace: nonrtric: nonrtric ingressClassName: kong -enrichmentservice: - enrichmentservice: - imagePullPolicy: IfNotPresent + +informationservice: + informationservice: + imagePullPolicy: Always image: registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' - name: 'nonrtric-enrichment-coordinator-service' + name: 'nonrtric-information-coordinator-service' tag: 1.2.0 service: allowHttp: true @@ -67,19 +73,21 @@ enrichmentservice: initialDelaySeconds: 20 periodSeconds: 10 persistence: - # Either refer to a volume created under the nonrtric by storageClassName. Then the claimed size should be the same. - # The alternative use a dynamic volume provisioner in the cluster. Storage class can then be fon instance 'standard' or 'gluster-fs' (depeneds on which classes that are available) + # Either refer to a volume created under the nonrtric by storageClassName. Then the claimed size should be the same. + # The alternative use a dynamic volume provisioner in the cluster. Storage class can then be for instance 'standard' or 'gluster-fs' (depeneds on which classes that are available) size: 2Gi - storageClassName: ecs-storage + storageClassName: ics-storage + ingress: + enabled: true # Need to check the external port Availability policymanagementservice: policymanagementservice: - imagePullPolicy: IfNotPresent + imagePullPolicy: Always image: registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: nonrtric-policy-agent - tag: 2.2.1 + tag: 2.3.0 service: allowHttp: true httpName: http @@ -95,20 +103,21 @@ policymanagementservice: initialDelaySeconds: 20 periodSeconds: 10 persistence: - # Either refer to a volume created under the nonrtric by storageClassName. Then the claimed size should be the same. - # The alternative use a dynamic volume provisioner in the cluster. Storage class can then be fon instance 'standard' or 'gluster-fs' (depeneds on which classes that are available) + # Either refer to a volume created under the nonrtric by storageClassName. Then the claimed size should be the same. + # The alternative use a dynamic volume provisioner in the cluster. Storage class can then be for instance 'standard' or 'gluster-fs' (depeneds on which classes that are available) size: 2Gi storageClassName: pms-storage - + ingress: + enabled: true # A1 Conttroller may take few more minutes to start. Increase the initialDelaySeconds in liveness to avoid container restart. a1controller: a1controller: - imagePullPolicy: IfNotPresent + imagePullPolicy: Always image: - registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc' - name: nonrtric-a1-controller - tag: 2.0.1 + registry: 'nexus3.onap.org:10002/onap' + name: sdnc-image + tag: 2.1.6 replicaCount: 1 service: allowHttp: true @@ -128,11 +137,11 @@ a1controller: a1simulator: a1simulator: name: a1-sim - imagePullPolicy: IfNotPresent + imagePullPolicy: Always image: - registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc' + registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: a1-simulator - tag: 2.1.0 + tag: 2.2.0 service: allowHttp: true httpName: http @@ -159,11 +168,11 @@ a1simulator: controlpanel: controlpanel: - imagePullPolicy: IfNotPresent + imagePullPolicy: Always image: registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: nonrtric-controlpanel - tag: 2.2.0 + tag: 2.3.0 replicaCount: 1 service: allowHttp: true @@ -181,26 +190,24 @@ controlpanel: readiness: initialDelaySeconds: 20 periodSeconds: 10 - - ingress: - enabled: false ingress: enabled: false + rappcatalogueservice: rappcatalogueservice: - imagePullPolicy: IfNotPresent + imagePullPolicy: Always image: - registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc' + registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: nonrtric-r-app-catalogue - tag: 1.0.0 + tag: 1.1.0 service: allowHttp: true httpName: http internalPort1: 9085 - targetPort1: 8080 + targetPort1: 8680 httpsName: https internalPort2: 9086 - targetPort2: 8433 + targetPort2: 8633 liveness: initialDelaySeconds: 20 periodSeconds: 10 @@ -210,11 +217,11 @@ rappcatalogueservice: nonrtricgateway: nonrtricgateway: - imagePullPolicy: IfNotPresent + imagePullPolicy: Always image: registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: nonrtric-gateway - tag: 1.0.0 + tag: 1.1.0 service: httpName: http internalPort1: 9090 @@ -229,7 +236,7 @@ nonrtricgateway: dmaapadapterservice: dmaapadapterservice: - imagePullPolicy: IfNotPresent + imagePullPolicy: Always image: registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: 'nonrtric-dmaap-adaptor' @@ -248,3 +255,49 @@ dmaapadapterservice: readiness: initialDelaySeconds: 20 periodSeconds: 10 + +dmaapmediatorservice: + dmaapmediatorservice: + imagePullPolicy: IfNotPresent + image: + registry: "nexus3.o-ran-sc.org:10004/o-ran-sc" + name: "nonrtric-dmaap-mediator-producer" + tag: 1.0.0 + service: + allowHttp: true + httpName: http + internalPort1: 8085 + targetPort1: 8085 + httpsName: https + internalPort2: 8185 + targetPort2: 8185 + liveness: + initialDelaySeconds: 20 + periodSeconds: 10 + readiness: + initialDelaySeconds: 20 + periodSeconds: 10 + +helmmanager: + helmmanager: + clusterRoleName: cluster-admin + imagePullPolicy: Always + image: + registry: "nexus3.o-ran-sc.org:10004/o-ran-sc" + name: "nonrtric-helm-manager" + tag: 1.1.0 + service: + httpName: http + internalPort1: 8112 + targetPort1: 8083 + liveness: + initialDelaySeconds: 20 + periodSeconds: 10 + readiness: + initialDelaySeconds: 20 + periodSeconds: 10 + persistence: + # Either refer to a volume created under the nonrtric by storageClassName. Then the claimed size should be the same. + # The alternative use a dynamic volume provisioner in the cluster. Storage class can then be for instance 'standard' or 'gluster-fs' (depeneds on which classes that are available) + size: 1Gi + storageClassName: helmmanager-storage \ No newline at end of file diff --git a/nonrtric/data/prepare_data.sh b/nonrtric/data/prepare_data.sh index d605efb7..0181f6d5 100755 --- a/nonrtric/data/prepare_data.sh +++ b/nonrtric/data/prepare_data.sh @@ -19,16 +19,16 @@ # This script is populating some data into nonrtric for demo/test purpose. # First this script copies data/ folder into one of the rics, in below case a1-sim-osc-0. -# Then from the ric, run populate_policy_data.sh and populate_enrichment_data.sh. +# Then from the ric, run populate_policy_data.sh and populate_information_data.sh. # populate_policy_data.sh creates policy-types, service, and policies. -# populate_enrichment_data.sh creates EiProducer, EiType, and EiJob. +# populate_information_data.sh creates EiProducer, EiType, and EiJob. # # Why we run the scripts in the ric, not from the host? # Because a1-simulators(ric) are deployed in statefulset, # they are not exposed to outside the k8s cluster. # And we must create policy type into the ric first. -# Similarly, the enrichmentservice is not exposed outside the k8s cluster, -# hence the commands for populating enrichment data need to be run from within the cluster. +# Similarly, the informationservice is not exposed outside the k8s cluster, +# hence the commands for populating information data need to be run from within the cluster. kubectl -n nonrtric cp run_in_k8s a1-sim-osc-0:/usr/src/app/ -kubectl -n nonrtric exec -it a1-sim-osc-0 -- bash -c 'cd run_in_k8s/ && ./populate_policy_data.sh && ./populate_enrichment_data.sh' \ No newline at end of file +kubectl -n nonrtric exec -it a1-sim-osc-0 -- bash -c 'cd run_in_k8s/ && ./populate_policy_data.sh && ./populate_information_data.sh' \ No newline at end of file diff --git a/nonrtric/data/run_in_k8s/populate_enrichment_data.sh b/nonrtric/data/run_in_k8s/populate_information_data.sh similarity index 66% rename from nonrtric/data/run_in_k8s/populate_enrichment_data.sh rename to nonrtric/data/run_in_k8s/populate_information_data.sh index 14edb818..71bd916a 100755 --- a/nonrtric/data/run_in_k8s/populate_enrichment_data.sh +++ b/nonrtric/data/run_in_k8s/populate_information_data.sh @@ -17,66 +17,66 @@ # ============LICENSE_END================================================= # -# This script will generate some dummy enrichment data in the running system. +# This script will generate some dummy information data in the running system. # It will create: -# one EiProducer in ECS -# one EiType in ECS -# one EiJob in ECS +# one EiProducer in ICS +# one EiType in ICS +# one EiJob in ICS -ecs_host="enrichmentservice" -ecs_port="9082" +ics_host="informationservice" +ics_port="9082" httpx=http -echo "ECS status:" -curl -skw " %{http_code}" $httpx://$ecs_host:$ecs_port/status +echo "ICS status:" +curl -skw " %{http_code}" $httpx://$ics_host:$ics_port/status echo -e "\n" # Create EiType echo "Create EiType:" -curl -X PUT -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-producer/v1/info-types/type1 -H accept:application/json -H Content-Type:application/json --data-binary @testdata/ECS/EiType.json +curl -X PUT -skw %{http_code} $httpx://$ics_host:$ics_port/data-producer/v1/info-types/type1 -H accept:application/json -H Content-Type:application/json --data-binary @testdata/ICS/EiType.json echo -e "\n" # Get EiTypes echo "Get EiTypes:" -curl -X GET -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-producer/v1/info-types -H Content-Type:application/json +curl -X GET -skw %{http_code} $httpx://$ics_host:$ics_port/data-producer/v1/info-types -H Content-Type:application/json echo -e "\n" # Get Individual EiType echo "Get Individual EiType:" -curl -X GET -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-producer/v1/info-types/type1 -H Content-Type:application/json +curl -X GET -skw %{http_code} $httpx://$ics_host:$ics_port/data-producer/v1/info-types/type1 -H Content-Type:application/json echo -e "\n" # Create EiProducer echo "Create EiProducer:" -curl -X PUT -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-producer/v1/info-producers/1 -H Content-Type:application/json --data-binary @testdata/ECS/EiProducer.json +curl -X PUT -skw %{http_code} $httpx://$ics_host:$ics_port/data-producer/v1/info-producers/1 -H Content-Type:application/json --data-binary @testdata/ICS/EiProducer.json echo -e "\n" # Get EiProducers echo "Get EiProducers:" -curl -X GET -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-producer/v1/info-producers -H Content-Type:application/json +curl -X GET -skw %{http_code} $httpx://$ics_host:$ics_port/data-producer/v1/info-producers -H Content-Type:application/json echo -e "\n" # Get Individual EiProducer echo "Get Individual EiProducer:" -curl -X GET -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-producer/v1/info-producers/1 -H Content-Type:application/json +curl -X GET -skw %{http_code} $httpx://$ics_host:$ics_port/data-producer/v1/info-producers/1 -H Content-Type:application/json echo -e "\n" # Get Individual EiProducer Status echo "Get Individual EiProducer:" -curl -X GET -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-producer/v1/info-producers/1/status -H Content-Type:application/json +curl -X GET -skw %{http_code} $httpx://$ics_host:$ics_port/data-producer/v1/info-producers/1/status -H Content-Type:application/json echo -e "\n" # Create EiJob echo "Create EiJob Of A Certain Type type1:" -curl -X PUT -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-consumer/v1/info-jobs/job1 -H Content-Type:application/json --data-binary @testdata/ECS/EiJob.json +curl -X PUT -skw %{http_code} $httpx://$ics_host:$ics_port/data-consumer/v1/info-jobs/job1 -H Content-Type:application/json --data-binary @testdata/ICS/EiJob.json echo -e "\n" # Get EiJobs echo "Get EiJobs:" -curl -X GET -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-consumer/v1/info-jobs -H Content-Type:application/json +curl -X GET -skw %{http_code} $httpx://$ics_host:$ics_port/data-consumer/v1/info-jobs -H Content-Type:application/json echo -e "\n" # Get Individual EiJob: echo "Get Individual EiJob:" -curl -X GET -skw %{http_code} $httpx://$ecs_host:$ecs_port/data-consumer/v1/info-jobs/job1 -H Content-Type:application/json +curl -X GET -skw %{http_code} $httpx://$ics_host:$ics_port/data-consumer/v1/info-jobs/job1 -H Content-Type:application/json echo -e "\n" \ No newline at end of file diff --git a/nonrtric/data/run_in_k8s/testdata/ECS/EiJob.json b/nonrtric/data/run_in_k8s/testdata/ICS/EiJob.json similarity index 100% rename from nonrtric/data/run_in_k8s/testdata/ECS/EiJob.json rename to nonrtric/data/run_in_k8s/testdata/ICS/EiJob.json diff --git a/nonrtric/data/run_in_k8s/testdata/ECS/EiProducer.json b/nonrtric/data/run_in_k8s/testdata/ICS/EiProducer.json similarity index 100% rename from nonrtric/data/run_in_k8s/testdata/ECS/EiProducer.json rename to nonrtric/data/run_in_k8s/testdata/ICS/EiProducer.json diff --git a/nonrtric/data/run_in_k8s/testdata/ECS/EiType.json b/nonrtric/data/run_in_k8s/testdata/ICS/EiType.json similarity index 100% rename from nonrtric/data/run_in_k8s/testdata/ECS/EiType.json rename to nonrtric/data/run_in_k8s/testdata/ICS/EiType.json diff --git a/nonrtric/helm/a1controller/templates/deployment.yaml b/nonrtric/helm/a1controller/templates/deployment.yaml index c5eb5964..e21ce870 100644 --- a/nonrtric/helm/a1controller/templates/deployment.yaml +++ b/nonrtric/helm/a1controller/templates/deployment.yaml @@ -44,11 +44,6 @@ spec: - name: {{ include "common.containername.a1controller" . }} image: {{ .Values.a1controller.image.registry }}/{{ .Values.a1controller.image.name }}:{{ .Values.a1controller.image.tag }} imagePullPolicy: {{ .Values.a1controller.imagePullPolicy }} - env: - - name: MYSQL_ROOT_PASSWORD - value: openECOMP1.0 - - name: SDNC_CONFIG_DIR - value: /opt/onap/sdnc/data/properties command: - /opt/onap/sdnc/bin/startODL.sh ports: @@ -56,6 +51,35 @@ spec: protocol: TCP - containerPort: {{ .Values.a1controller.service.targetPort2 }} protocol: TCP + env: + - name: MYSQL_ROOT_PASSWORD + value: 'itsASecret' + - name: MYSQL_USER + value: 'sdnctl' + - name: MYSQL_PASSWORD + value: 'gamma' + - name: MYSQL_DATABASE + value: 'sdnctl' + - name: SDNC_CONFIG_DIR + value: '/opt/onap/sdnc/data/properties' + - name: SDNC_BIN + value: '/opt/onap/sdnc/bin' + - name: ODL_CERT_DIR + value: '/tmp' + - name: ODL_ADMIN_USERNAME + value: admin + - name: ODL_ADMIN_PASSWORD + value: 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U' + - name: ODL_USERNAME + value: admin + - name: ODL_PASSWORD + value: 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U' + - name: SDNC_DB_INIT + value: 'true' + - name: A1_TRUSTSTORE_PASSWORD + value: 'a1adapter' + - name: AAI_TRUSTSTORE_PASSWORD + value: 'changeit' readinessProbe: tcpSocket: port: {{ .Values.a1controller.service.targetPort1 }} @@ -85,12 +109,12 @@ spec: spec: containers: - name: sdnc-db-container - image: mysql/mysql-server:5.6 + image: nexus3.o-ran-sc.org:10001/mariadb:10.5 imagePullPolicy: IfNotPresent env: - name: MYSQL_ROOT_HOST value: '%' - name: MYSQL_ROOT_PASSWORD - value: openECOMP1.0 + value: 'itsASecret' ports: - containerPort: 3306 \ No newline at end of file diff --git a/nonrtric/helm/a1controller/values.yaml b/nonrtric/helm/a1controller/values.yaml index 11e8a0dc..6f0410d0 100644 --- a/nonrtric/helm/a1controller/values.yaml +++ b/nonrtric/helm/a1controller/values.yaml @@ -20,9 +20,9 @@ a1controller: imagePullPolicy: IfNotPresent image: - registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc' - name: nonrtric-a1-controller - tag: 2.0.1 + registry: 'nexus3.onap.org:10002/onap' + name: sdnc-image + tag: 2.1.6 replicaCount: 1 service: allowHttp: true diff --git a/nonrtric/helm/a1simulator/values.yaml b/nonrtric/helm/a1simulator/values.yaml index 9836bf22..3f587c6a 100644 --- a/nonrtric/helm/a1simulator/values.yaml +++ b/nonrtric/helm/a1simulator/values.yaml @@ -22,9 +22,9 @@ a1simulator: name: a1-sim imagePullPolicy: IfNotPresent image: - registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc' + registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: a1-simulator - tag: 2.1.0 + tag: 2.2.0 service: allowHttp: true httpName: http diff --git a/nonrtric/helm/controlpanel/resources-ing/nginx.conf b/nonrtric/helm/controlpanel/resources-ing/nginx.conf new file mode 100644 index 00000000..d72eea73 --- /dev/null +++ b/nonrtric/helm/controlpanel/resources-ing/nginx.conf @@ -0,0 +1,28 @@ +events{} + +http { + include /etc/nginx/mime.types; + + upstream backend { + server kong-proxy.kong:80; + } + + server { + listen 8080; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + location /a1-policy/ { + proxy_pass http://backend; + } + location /data-producer/ { + proxy_pass http://backend; + } + location /data-consumer/ { + proxy_pass http://backend; + } + location / { + try_files $uri $uri/ /index.html; + } + } +} \ No newline at end of file diff --git a/nonrtric/helm/controlpanel/resources/nginx.conf b/nonrtric/helm/controlpanel/resources-ngw/nginx.conf similarity index 100% rename from nonrtric/helm/controlpanel/resources/nginx.conf rename to nonrtric/helm/controlpanel/resources-ngw/nginx.conf diff --git a/nonrtric/helm/controlpanel/templates/configmap.yaml b/nonrtric/helm/controlpanel/templates/configmap.yaml index e351ce97..c99b92f8 100644 --- a/nonrtric/helm/controlpanel/templates/configmap.yaml +++ b/nonrtric/helm/controlpanel/templates/configmap.yaml @@ -25,4 +25,8 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: -{{ tpl (.Files.Glob "resources/*").AsConfig . | indent 2 }} \ No newline at end of file +{{if eq .Values.controlpanel.ingress.enabled false }} +{{ tpl (.Files.Glob "resources-ngw/*").AsConfig . | indent 2 }} +{{ else }} +{{ tpl (.Files.Glob "resources-ing/*").AsConfig . | indent 2 }} +{{ end }} \ No newline at end of file diff --git a/nonrtric/helm/controlpanel/values.yaml b/nonrtric/helm/controlpanel/values.yaml index ce9acbce..91f233f2 100644 --- a/nonrtric/helm/controlpanel/values.yaml +++ b/nonrtric/helm/controlpanel/values.yaml @@ -23,7 +23,7 @@ controlpanel: image: registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: nonrtric-controlpanel - tag: 2.2.0 + tag: 2.3.0 replicaCount: 1 service: allowHttp: true @@ -41,3 +41,5 @@ controlpanel: readiness: initialDelaySeconds: 20 periodSeconds: 10 + ingress: + enabled: true \ No newline at end of file diff --git a/nonrtric/helm/dmaapadapterservice/resources/config/application.yaml b/nonrtric/helm/dmaapadapterservice/resources/config/application.yaml index a3582fb6..2730af84 100644 --- a/nonrtric/helm/dmaapadapterservice/resources/config/application.yaml +++ b/nonrtric/helm/dmaapadapterservice/resources/config/application.yaml @@ -25,18 +25,23 @@ management: endpoints: web: exposure: + # Enabling of springboot actuator features. See springboot documentation. include: "loggers,logfile,health,info,metrics,threaddump,heapdump" - +springdoc: + show-actuator: true logging: + # Configuration of logging level: ROOT: ERROR org.springframework: ERROR org.springframework.data: ERROR org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR - org.oran.dmaapadapter: INFO + org.oran.dmaapadapter: DEBUG file: name: /var/log/dmaap-adaptor-service/application.log server: + # Configuration of the HTTP/REST server. The parameters are defined and handeled by the springboot framework. + # See springboot documentation. port : 8435 http-port: 8084 ssl: @@ -47,13 +52,23 @@ server: key-alias: policy_agent app: webclient: + # Configuration of the trust store used for the HTTP client (outgoing requests) + # The file location and the password for the truststore is only relevant if trust-store-used == true + # Note that the same keystore as for the server is used. trust-store-used: false trust-store-password: policy_agent trust-store: /opt/app/dmaap-adaptor-service/etc/cert/truststore.jks + # Configuration of usage of HTTP Proxy for the southbound accesses. + # The HTTP proxy (if configured) will only be used for accessing NearRT RIC:s http.proxy-host: http.proxy-port: 0 - ecs-base-url: https://enrichmentservice:9083 + ics-base-url: https://informationservice.nonrtric:9083 + # Location of the component configuration file. The file will only be used if the Consul database is not used; + # configuration from the Consul will override the file. configuration-filepath: /opt/app/dmaap-adaptor-service/data/application_configuration.json dmaap-base-url: http://message-router.onap:3904 # The url used to adress this component. This is used as a callback url sent to other components. - dmaap-adapter-base-url: https://dmaapadapterservice:9088 \ No newline at end of file + dmaap-adapter-base-url: https://dmaapadapterservice.nonrtric:9088 + # KAFKA boostrap server. This is only needed if there are Information Types that uses a kafkaInputTopic + kafka: + bootstrap-servers: message-router-kafka.onap:9092 diff --git a/nonrtric/helm/dmaapadapterservice/resources/data/application_configuration.json b/nonrtric/helm/dmaapadapterservice/resources/data/application_configuration.json index a8967d8b..137e353f 100644 --- a/nonrtric/helm/dmaapadapterservice/resources/data/application_configuration.json +++ b/nonrtric/helm/dmaapadapterservice/resources/data/application_configuration.json @@ -2,7 +2,13 @@ "types": [ { "id": "ExampleInformationType", - "dmaapTopicUrl": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12" - } + "dmaapTopicUrl": "/events/unauthenticated.dmaapadp.json/dmaapadapterproducer/msgs?timeout=15000&limit=100", + "useHttpProxy": false + }, + { + "id": "ExampleInformationTypeKafka", + "kafkaInputTopic": "unauthenticated.dmaapadp_kafka.text", + "useHttpProxy": false + } ] -} + } diff --git a/nonrtric/helm/enrichmentservice/.helmignore b/nonrtric/helm/dmaapmediatorservice/.helmignore similarity index 100% rename from nonrtric/helm/enrichmentservice/.helmignore rename to nonrtric/helm/dmaapmediatorservice/.helmignore diff --git a/nonrtric/helm/dmaapmediatorservice/Chart.yaml b/nonrtric/helm/dmaapmediatorservice/Chart.yaml new file mode 100644 index 00000000..c78a5d0d --- /dev/null +++ b/nonrtric/helm/dmaapmediatorservice/Chart.yaml @@ -0,0 +1,21 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: v1 +appVersion: "1.0.0" +description: A Helm chart for Dmaap Mediator Service +name: dmaapmediatorservice +version: 1.0.0 diff --git a/nonrtric/helm/dmaapmediatorservice/requirements.yaml b/nonrtric/helm/dmaapmediatorservice/requirements.yaml new file mode 100644 index 00000000..69b4db6d --- /dev/null +++ b/nonrtric/helm/dmaapmediatorservice/requirements.yaml @@ -0,0 +1,20 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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. # +################################################################################ + +dependencies: + - name: nonrtric-common + version: ^2.0.0 + repository: "@local" diff --git a/nonrtric/helm/dmaapmediatorservice/resources/data/type_config.json b/nonrtric/helm/dmaapmediatorservice/resources/data/type_config.json new file mode 100644 index 00000000..cf3855aa --- /dev/null +++ b/nonrtric/helm/dmaapmediatorservice/resources/data/type_config.json @@ -0,0 +1,9 @@ +{ + "types": + [ + { + "id": "STD_Fault_Messages", + "dmaapTopicUrl": "/events/unauthenticated.dmaapmed.json/dmaapmediatorproducer/STD_Fault_Messages?timeout=15000&limit=100" + } + ] + } diff --git a/nonrtric/helm/dmaapmediatorservice/templates/configmap.yaml b/nonrtric/helm/dmaapmediatorservice/templates/configmap.yaml new file mode 100644 index 00000000..0315e379 --- /dev/null +++ b/nonrtric/helm/dmaapmediatorservice/templates/configmap.yaml @@ -0,0 +1,29 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: v1 +kind: ConfigMap +metadata: + name: {{ include "common.name.dmaapmediatorservice" . }}-configmap-data + namespace: {{ include "common.namespace.nonrtric" . }} + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.dmaapmediatorservice" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +data: +{{ tpl (.Files.Glob "resources/data/*").AsConfig . | indent 2 }} \ No newline at end of file diff --git a/nonrtric/helm/dmaapmediatorservice/templates/service.yaml b/nonrtric/helm/dmaapmediatorservice/templates/service.yaml new file mode 100644 index 00000000..d09fde42 --- /dev/null +++ b/nonrtric/helm/dmaapmediatorservice/templates/service.yaml @@ -0,0 +1,42 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: Service +apiVersion: v1 +metadata: + name: {{ include "common.name.dmaapmediatorservice" . }} + namespace: {{ include "common.namespace.nonrtric" . }} + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.dmaapmediatorservice" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + ports: + {{if eq .Values.dmaapmediatorservice.service.allowHttp true -}} + - name: {{ index .Values.dmaapmediatorservice.service.httpName }} + port: {{ .Values.dmaapmediatorservice.service.internalPort1 }} + targetPort: {{ .Values.dmaapmediatorservice.service.targetPort1 }} + protocol: TCP + {{- end }} + - name: {{ index .Values.dmaapmediatorservice.service.httpsName }} + port: {{ .Values.dmaapmediatorservice.service.internalPort2 }} + targetPort: {{ .Values.dmaapmediatorservice.service.targetPort2 }} + protocol: TCP + selector: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.dmaapmediatorservice" . }} + release: {{ .Release.Name }} + type: ClusterIP diff --git a/nonrtric/helm/dmaapmediatorservice/templates/statefulset.yaml b/nonrtric/helm/dmaapmediatorservice/templates/statefulset.yaml new file mode 100644 index 00000000..ae3971d8 --- /dev/null +++ b/nonrtric/helm/dmaapmediatorservice/templates/statefulset.yaml @@ -0,0 +1,83 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: StatefulSet +apiVersion: apps/v1 +metadata: + name: {{ include "common.name.dmaapmediatorservice" . }} + namespace: {{ include "common.namespace.nonrtric" . }} + generation: 1 + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.dmaapmediatorservice" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + annotations: + deployment.kubernetes.io/revision: '1' +spec: + serviceName: {{ include "common.name.dmaapmediatorservice" . }} + replicas: 1 + selector: + matchLabels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.dmaapmediatorservice" . }} + release: {{ .Release.Name }} + template: + metadata: + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.dmaapmediatorservice" . }} + release: {{ .Release.Name }} + spec: + hostname: {{ include "common.name.dmaapmediatorservice" . }} + containers: + - name: {{ include "common.container.dmaapmediatorservice" . }} + image: {{ .Values.dmaapmediatorservice.image.registry }}/{{ .Values.dmaapmediatorservice.image.name }}:{{ .Values.dmaapmediatorservice.image.tag }} + imagePullPolicy: {{ .Values.dmaapmediatorservice.imagePullPolicy }} + ports: + - containerPort: {{ .Values.dmaapmediatorservice.service.targetPort1 }} + protocol: TCP + - containerPort: {{ .Values.dmaapmediatorservice.service.targetPort2 }} + protocol: TCP + # Temporarily disabled probes due to no http available in the container + # readinessProbe: + # tcpSocket: + # port: {{ .Values.dmaapmediatorservice.service.targetPort1 }} + # initialDelaySeconds: {{ .Values.dmaapmediatorservice.liveness.initialDelaySeconds }} + # periodSeconds: {{ .Values.dmaapmediatorservice.liveness.periodSeconds }} + # livenessProbe: + # tcpSocket: + # port: {{ .Values.dmaapmediatorservice.service.targetPort1 }} + # initialDelaySeconds: {{ .Values.dmaapmediatorservice.liveness.initialDelaySeconds }} + # periodSeconds: {{ .Values.dmaapmediatorservice.liveness.periodSeconds }} + volumeMounts: + - name: {{ include "common.name.dmaapmediatorservice" . }}-dmaapmediator-data + mountPath: /configs/type_config.json + subPath: type_config.json + + env: + - name: INFO_PRODUCER_HOST + value: https://{{ include "common.name.dmaapmediatorservice" . }} + - name: INFO_PRODUCER_PORT + value: "{{ .Values.dmaapmediatorservice.service.internalPort2 }}" + - name: INFO_COORD_ADDR + value: https://informationservice:9083 + - name: DMAAP_MR_ADDR + value: https://message-router.onap:3905 + - name: LOG_LEVEL + value: Info + volumes: + - name: {{ include "common.name.dmaapmediatorservice" . }}-dmaapmediator-data + configMap: + name: {{ include "common.name.dmaapmediatorservice" . }}-configmap-data diff --git a/nonrtric/helm/dmaapmediatorservice/values.yaml b/nonrtric/helm/dmaapmediatorservice/values.yaml new file mode 100644 index 00000000..4a32b422 --- /dev/null +++ b/nonrtric/helm/dmaapmediatorservice/values.yaml @@ -0,0 +1,40 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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. # +################################################################################ + +# Default values for Dmaap Adapter Service. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +dmaapmediatorservice: + imagePullPolicy: IfNotPresent + image: + registry: "nexus3.o-ran-sc.org:10004/o-ran-sc" + name: "nonrtric-dmaap-mediator-producer" + tag: 1.0.0 + service: + allowHttp: true + httpName: http + internalPort1: 8085 + targetPort1: 8085 + httpsName: https + internalPort2: 8185 + targetPort2: 8185 + liveness: + initialDelaySeconds: 20 + periodSeconds: 10 + readiness: + initialDelaySeconds: 20 + periodSeconds: 10 diff --git a/nonrtric/helm/helmmanager/.helmignore b/nonrtric/helm/helmmanager/.helmignore new file mode 100644 index 00000000..50af0317 --- /dev/null +++ b/nonrtric/helm/helmmanager/.helmignore @@ -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/nonrtric/helm/helmmanager/Chart.yaml b/nonrtric/helm/helmmanager/Chart.yaml new file mode 100644 index 00000000..ab2d5a04 --- /dev/null +++ b/nonrtric/helm/helmmanager/Chart.yaml @@ -0,0 +1,21 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: v1 +appVersion: "1.0.0" +description: A Helm chart for Helm Manager +name: helmmanager +version: 1.0.0 diff --git a/nonrtric/helm/helmmanager/requirements.yaml b/nonrtric/helm/helmmanager/requirements.yaml new file mode 100644 index 00000000..69b4db6d --- /dev/null +++ b/nonrtric/helm/helmmanager/requirements.yaml @@ -0,0 +1,20 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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. # +################################################################################ + +dependencies: + - name: nonrtric-common + version: ^2.0.0 + repository: "@local" diff --git a/nonrtric/helm/helmmanager/templates/service.yaml b/nonrtric/helm/helmmanager/templates/service.yaml new file mode 100644 index 00000000..4fab625a --- /dev/null +++ b/nonrtric/helm/helmmanager/templates/service.yaml @@ -0,0 +1,36 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: Service +apiVersion: v1 +metadata: + name: {{ include "common.name.helmmanager" . }} + namespace: {{ include "common.namespace.nonrtric" . }} + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.helmmanager" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + ports: + - name: {{ index .Values.helmmanager.service.httpName }} + port: {{ .Values.helmmanager.service.internalPort1 }} + targetPort: {{ .Values.helmmanager.service.targetPort1 }} + protocol: TCP + selector: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.helmmanager" . }} + release: {{ .Release.Name }} + type: ClusterIP diff --git a/nonrtric/helm/helmmanager/templates/serviceaccount.yaml b/nonrtric/helm/helmmanager/templates/serviceaccount.yaml new file mode 100644 index 00000000..0e5ea202 --- /dev/null +++ b/nonrtric/helm/helmmanager/templates/serviceaccount.yaml @@ -0,0 +1,43 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: v1 +kind: ServiceAccount +metadata: + name: {{ include "common.namespace.nonrtric" . }}-helm-manager-sa + namespace: {{ include "common.namespace.nonrtric" . }} + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.helmmanager" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + annotations: + +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "common.namespace.nonrtric" . }}-helm-manager-sa-clusterrolebinding + namespace: {{ include "common.namespace.nonrtric" . }} +subjects: +- kind: ServiceAccount + name: {{ include "common.namespace.nonrtric" . }}-helm-manager-sa + namespace: {{ include "common.namespace.nonrtric" . }} +roleRef: + kind: ClusterRole + name: {{ .Values.helmmanager.clusterRoleName }} + apiGroup: rbac.authorization.k8s.io \ No newline at end of file diff --git a/nonrtric/helm/helmmanager/templates/statefulset.yaml b/nonrtric/helm/helmmanager/templates/statefulset.yaml new file mode 100644 index 00000000..668ac5f6 --- /dev/null +++ b/nonrtric/helm/helmmanager/templates/statefulset.yaml @@ -0,0 +1,74 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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: StatefulSet +apiVersion: apps/v1 +metadata: + name: {{ include "common.name.helmmanager" . }} + namespace: {{ include "common.namespace.nonrtric" . }} + generation: 1 + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.helmmanager" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + annotations: + +spec: + serviceName: {{ include "common.name.helmmanager" . }} + replicas: 1 + selector: + matchLabels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.helmmanager" . }} + release: {{ .Release.Name }} + template: + metadata: + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.helmmanager" . }} + release: {{ .Release.Name }} + spec: + hostname: {{ include "common.name.helmmanager" . }} + containers: + - name: {{ include "common.container.helmmanager" . }} + image: {{ .Values.helmmanager.image.registry }}/{{ .Values.helmmanager.image.name }}:{{ .Values.helmmanager.image.tag }} + imagePullPolicy: {{ .Values.helmmanager.imagePullPolicy }} + ports: + - containerPort: {{ .Values.helmmanager.service.targetPort1 }} + protocol: TCP + # readinessProbe: + # tcpSocket: + # port: {{ .Values.helmmanager.service.targetPort1 }} + # initialDelaySeconds: {{ .Values.helmmanager.liveness.initialDelaySeconds }} + # periodSeconds: {{ .Values.helmmanager.liveness.periodSeconds }} + # livenessProbe: + # httpGet: + # path: /helm/charts + # port: {{ .Values.helmmanager.service.targetPort1 }} + # initialDelaySeconds: {{ .Values.helmmanager.liveness.initialDelaySeconds }} + # periodSeconds: {{ .Values.helmmanager.liveness.periodSeconds }} + volumeMounts: + - name: {{ include "common.name.helmmanager" . }}-vardata + mountPath: "/var/helm-manager-service" + volumeClaimTemplates: + - metadata: + name: {{ include "common.name.helmmanager" . }}-vardata + spec: + accessModes: + - ReadWriteOnce + storageClassName: "{{ .Values.helmmanager.persistence.storageClassName }}" + resources: + requests: + storage: "{{ .Values.helmmanager.persistence.size }}" diff --git a/nonrtric/helm/helmmanager/values.yaml b/nonrtric/helm/helmmanager/values.yaml new file mode 100644 index 00000000..40ef6341 --- /dev/null +++ b/nonrtric/helm/helmmanager/values.yaml @@ -0,0 +1,40 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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. # +################################################################################ + +# Default values for Helm Manager +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +helmmanager: + clusterRoleName: cluster-admin + imagePullPolicy: IfNotPresent + image: + registry: "nexus3.o-ran-sc.org:10004/o-ran-sc" + name: "nonrtric-helm-manager" + tag: 1.1.0 + service: + httpName: http + internalPort1: 8112 + targetPort1: 8083 + liveness: + initialDelaySeconds: 20 + periodSeconds: 10 + readiness: + initialDelaySeconds: 20 + periodSeconds: 10 + persistence: + size: 1Gi + storageClassName: standard \ No newline at end of file diff --git a/nonrtric/helm/informationservice/.helmignore b/nonrtric/helm/informationservice/.helmignore new file mode 100644 index 00000000..50af0317 --- /dev/null +++ b/nonrtric/helm/informationservice/.helmignore @@ -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/nonrtric/helm/enrichmentservice/Chart.yaml b/nonrtric/helm/informationservice/Chart.yaml similarity index 93% rename from nonrtric/helm/enrichmentservice/Chart.yaml rename to nonrtric/helm/informationservice/Chart.yaml index de02e98b..610411be 100644 --- a/nonrtric/helm/enrichmentservice/Chart.yaml +++ b/nonrtric/helm/informationservice/Chart.yaml @@ -16,6 +16,6 @@ apiVersion: v1 appVersion: "1.0.0" -description: A Helm chart for Enrichment Coordinator Service -name: enrichmentservice +description: A Helm chart for Information Coordinator Service +name: informationservice version: 1.0.0 diff --git a/nonrtric/helm/enrichmentservice/requirements.yaml b/nonrtric/helm/informationservice/requirements.yaml similarity index 100% rename from nonrtric/helm/enrichmentservice/requirements.yaml rename to nonrtric/helm/informationservice/requirements.yaml diff --git a/nonrtric/helm/enrichmentservice/resources/config/application.yaml b/nonrtric/helm/informationservice/resources/config/application.yaml similarity index 75% rename from nonrtric/helm/enrichmentservice/resources/config/application.yaml rename to nonrtric/helm/informationservice/resources/config/application.yaml index 75b11ad8..5d949a92 100644 --- a/nonrtric/helm/enrichmentservice/resources/config/application.yaml +++ b/nonrtric/helm/informationservice/resources/config/application.yaml @@ -33,22 +33,26 @@ logging: org.springframework: ERROR org.springframework.data: ERROR org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR - org.oransc.enrichment: INFO + org.oransc.information: INFO file: - name: /var/log/enrichment-coordinator-service/application.log + name: /var/log/information-coordinator-service/application.log server: port : 8434 http-port: 8083 ssl: key-store-type: JKS key-store-password: policy_agent - key-store: /opt/app/enrichment-coordinator-service/etc/cert/keystore.jks + key-store: /opt/app/information-coordinator-service/etc/cert/keystore.jks key-password: policy_agent key-alias: policy_agent app: - filepath: /opt/app/enrichment-coordinator-service/data/application_configuration.json + filepath: /opt/app/information-coordinator-service/data/application_configuration.json webclient: trust-store-used: false trust-store-password: policy_agent - trust-store: /opt/app/enrichment-coordinator-service/etc/cert/truststore.jks - vardata-directory: /var/enrichment-coordinator-service \ No newline at end of file + trust-store: /opt/app/information-coordinator-service/etc/cert/truststore.jks + # Configuration of usage of HTTP Proxy for the southbound accesses. + # The HTTP proxy (if configured) will only be used for accessing NearRT RIC:s + http.proxy-host: + http.proxy-port: 0 + vardata-directory: /var/information-coordinator-service \ No newline at end of file diff --git a/nonrtric/helm/enrichmentservice/templates/configmap.yaml b/nonrtric/helm/informationservice/templates/configmap.yaml similarity index 93% rename from nonrtric/helm/enrichmentservice/templates/configmap.yaml rename to nonrtric/helm/informationservice/templates/configmap.yaml index d8e4f895..d8b198de 100644 --- a/nonrtric/helm/enrichmentservice/templates/configmap.yaml +++ b/nonrtric/helm/informationservice/templates/configmap.yaml @@ -18,10 +18,10 @@ apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "common.name.enrichmentservice" . }}-configmap + name: {{ include "common.name.informationservice" . }}-configmap namespace: {{ include "common.namespace.nonrtric" . }} labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.enrichmentservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.informationservice" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} diff --git a/nonrtric/helm/enrichmentservice/templates/ingress.yaml b/nonrtric/helm/informationservice/templates/ingress.yaml similarity index 80% rename from nonrtric/helm/enrichmentservice/templates/ingress.yaml rename to nonrtric/helm/informationservice/templates/ingress.yaml index deb3b547..9387bdce 100644 --- a/nonrtric/helm/enrichmentservice/templates/ingress.yaml +++ b/nonrtric/helm/informationservice/templates/ingress.yaml @@ -16,11 +16,11 @@ ################################################################################ */}} -{{- if .Values.enrichmentservice.ingress.enabled -}} +{{- if .Values.informationservice.ingress.enabled -}} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: {{ include "common.name.enrichmentservice" . }} + name: {{ include "common.name.informationservice" . }} namespace: {{ include "common.namespace.nonrtric" . }} spec: @@ -31,15 +31,15 @@ spec: - path: "/data-producer" backend: service: - name: {{ include "common.name.enrichmentservice" . }} + name: {{ include "common.name.informationservice" . }} port: - number: {{ .Values.enrichmentservice.service.internalPort1 }} + number: {{ .Values.informationservice.service.internalPort1 }} pathType: Prefix - path: "/data-consumer" backend: service: - name: {{ include "common.name.enrichmentservice" . }} + name: {{ include "common.name.informationservice" . }} port: - number: {{ .Values.enrichmentservice.service.internalPort1 }} + number: {{ .Values.informationservice.service.internalPort1 }} pathType: Prefix {{- end -}} \ No newline at end of file diff --git a/nonrtric/helm/enrichmentservice/templates/service.yaml b/nonrtric/helm/informationservice/templates/service.yaml similarity index 74% rename from nonrtric/helm/enrichmentservice/templates/service.yaml rename to nonrtric/helm/informationservice/templates/service.yaml index 0b2a110c..ba5783cf 100644 --- a/nonrtric/helm/enrichmentservice/templates/service.yaml +++ b/nonrtric/helm/informationservice/templates/service.yaml @@ -17,26 +17,26 @@ kind: Service apiVersion: v1 metadata: - name: {{ include "common.name.enrichmentservice" . }} + name: {{ include "common.name.informationservice" . }} namespace: {{ include "common.namespace.nonrtric" . }} labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.enrichmentservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.informationservice" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: ports: - {{if eq .Values.enrichmentservice.service.allowHttp true -}} - - name: {{ index .Values.enrichmentservice.service.httpName }} - port: {{ .Values.enrichmentservice.service.internalPort1 }} - targetPort: {{ .Values.enrichmentservice.service.targetPort1 }} + {{if eq .Values.informationservice.service.allowHttp true -}} + - name: {{ index .Values.informationservice.service.httpName }} + port: {{ .Values.informationservice.service.internalPort1 }} + targetPort: {{ .Values.informationservice.service.targetPort1 }} protocol: TCP {{- end }} - - name: {{ index .Values.enrichmentservice.service.httpsName }} - port: {{ .Values.enrichmentservice.service.internalPort2 }} - targetPort: {{ .Values.enrichmentservice.service.targetPort2 }} + - name: {{ index .Values.informationservice.service.httpsName }} + port: {{ .Values.informationservice.service.internalPort2 }} + targetPort: {{ .Values.informationservice.service.targetPort2 }} protocol: TCP selector: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.enrichmentservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.informationservice" . }} release: {{ .Release.Name }} type: ClusterIP diff --git a/nonrtric/helm/enrichmentservice/templates/statefulset.yaml b/nonrtric/helm/informationservice/templates/statefulset.yaml similarity index 54% rename from nonrtric/helm/enrichmentservice/templates/statefulset.yaml rename to nonrtric/helm/informationservice/templates/statefulset.yaml index 678e8b15..a5973243 100644 --- a/nonrtric/helm/enrichmentservice/templates/statefulset.yaml +++ b/nonrtric/helm/informationservice/templates/statefulset.yaml @@ -17,66 +17,66 @@ kind: StatefulSet apiVersion: apps/v1 metadata: - name: {{ include "common.name.enrichmentservice" . }} + name: {{ include "common.name.informationservice" . }} namespace: {{ include "common.namespace.nonrtric" . }} generation: 1 labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.enrichmentservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.informationservice" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: deployment.kubernetes.io/revision: '1' spec: - serviceName: {{ include "common.name.enrichmentservice" . }} + serviceName: {{ include "common.name.informationservice" . }} replicas: 1 selector: matchLabels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.enrichmentservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.informationservice" . }} release: {{ .Release.Name }} template: metadata: labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.enrichmentservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.informationservice" . }} release: {{ .Release.Name }} spec: - hostname: {{ include "common.name.enrichmentservice" . }} + hostname: {{ include "common.name.informationservice" . }} containers: - - name: {{ include "common.container.enrichmentservice" . }} - image: {{ .Values.enrichmentservice.image.registry }}/{{ .Values.enrichmentservice.image.name }}:{{ .Values.enrichmentservice.image.tag }} - imagePullPolicy: {{ .Values.enrichmentservice.imagePullPolicy }} + - name: {{ include "common.container.informationservice" . }} + image: {{ .Values.informationservice.image.registry }}/{{ .Values.informationservice.image.name }}:{{ .Values.informationservice.image.tag }} + imagePullPolicy: {{ .Values.informationservice.imagePullPolicy }} ports: - - containerPort: {{ .Values.enrichmentservice.service.targetPort1 }} + - containerPort: {{ .Values.informationservice.service.targetPort1 }} protocol: TCP - - containerPort: {{ .Values.enrichmentservice.service.targetPort2 }} + - containerPort: {{ .Values.informationservice.service.targetPort2 }} protocol: TCP readinessProbe: tcpSocket: - port: {{ .Values.enrichmentservice.service.targetPort1 }} - initialDelaySeconds: {{ .Values.enrichmentservice.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.enrichmentservice.liveness.periodSeconds }} + port: {{ .Values.informationservice.service.targetPort1 }} + initialDelaySeconds: {{ .Values.informationservice.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.informationservice.liveness.periodSeconds }} livenessProbe: httpGet: path: /status - port: {{ .Values.enrichmentservice.service.targetPort1 }} - initialDelaySeconds: {{ .Values.enrichmentservice.liveness.initialDelaySeconds }} - periodSeconds: {{ .Values.enrichmentservice.liveness.periodSeconds }} + port: {{ .Values.informationservice.service.targetPort1 }} + initialDelaySeconds: {{ .Values.informationservice.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.informationservice.liveness.periodSeconds }} volumeMounts: - - name: {{ include "common.name.enrichmentservice" . }}-enrichment-config - mountPath: /opt/app/enrichment-coordinator-service/config - - name: {{ include "common.name.enrichmentservice" . }}-vardata - mountPath: /var/enrichment-coordinator-service + - name: {{ include "common.name.informationservice" . }}-information-config + mountPath: /opt/app/information-coordinator-service/config + - name: {{ include "common.name.informationservice" . }}-vardata + mountPath: /var/information-coordinator-service volumes: - - name: {{ include "common.name.enrichmentservice" . }}-enrichment-config + - name: {{ include "common.name.informationservice" . }}-information-config configMap: - name: {{ include "common.name.enrichmentservice" . }}-configmap + name: {{ include "common.name.informationservice" . }}-configmap volumeClaimTemplates: - metadata: - name: {{ include "common.name.enrichmentservice" . }}-vardata + name: {{ include "common.name.informationservice" . }}-vardata spec: accessModes: [ ReadWriteOnce ] - storageClassName: "{{ .Values.enrichmentservice.persistence.storageClassName }}" + storageClassName: "{{ .Values.informationservice.persistence.storageClassName }}" resources: requests: - storage: "{{ .Values.enrichmentservice.persistence.size }}" + storage: "{{ .Values.informationservice.persistence.size }}" diff --git a/nonrtric/helm/enrichmentservice/values.yaml b/nonrtric/helm/informationservice/values.yaml similarity index 93% rename from nonrtric/helm/enrichmentservice/values.yaml rename to nonrtric/helm/informationservice/values.yaml index 32eb4a7d..e9986560 100644 --- a/nonrtric/helm/enrichmentservice/values.yaml +++ b/nonrtric/helm/informationservice/values.yaml @@ -14,15 +14,15 @@ # limitations under the License. # ################################################################################ -# Default values for Enrichment Coordinate Service. +# Default values for Information Coordinate Service. # This is a YAML-formatted file. # Declare variables to be passed into your templates. -enrichmentservice: +informationservice: imagePullPolicy: IfNotPresent image: registry: "nexus3.o-ran-sc.org:10004/o-ran-sc" - name: "nonrtric-enrichment-coordinator-service" + name: "nonrtric-information-coordinator-service" tag: 1.2.0 service: allowHttp: true diff --git a/nonrtric/helm/nonrtric/Chart.yaml b/nonrtric/helm/nonrtric/Chart.yaml index 7c70488c..76422fff 100644 --- a/nonrtric/helm/nonrtric/Chart.yaml +++ b/nonrtric/helm/nonrtric/Chart.yaml @@ -40,10 +40,10 @@ dependencies: repository: "@local" condition: nonrtric.installPms - - name: enrichmentservice + - name: informationservice version: ~1.0.0 repository: "@local" - condition: nonrtric.installEnrichmentservice + condition: nonrtric.installInformationservice - name: nonrtric-common version: ^2.0.0 @@ -64,3 +64,14 @@ dependencies: version: ~1.0.0 repository: "@local" condition: nonrtric.installDmaapadapterservice + + - name: dmaapmediatorservice + version: ~1.0.0 + repository: "@local" + condition: nonrtric.installDmaapmediatorservice + + - name: helmmanager + version: ~1.0.0 + repository: "@local" + condition: nonrtric.installHelmmanager + diff --git a/nonrtric/helm/nonrtric/templates/pv3.yaml b/nonrtric/helm/nonrtric/templates/pv3.yaml new file mode 100644 index 00000000..c0382f0b --- /dev/null +++ b/nonrtric/helm/nonrtric/templates/pv3.yaml @@ -0,0 +1,36 @@ +############################################################################### +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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. # +################################################################################ + +{{- if .Values.nonrtric.volume3.size }} + +kind: PersistentVolume +apiVersion: v1 +metadata: + name: nonrtric-pv3 + namespace: {{ include "common.namespace.nonrtric" . }} +spec: + capacity: + storage: {{ .Values.nonrtric.volume3.size }} + accessModes: + - ReadWriteOnce + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + hostPath: + path: /dockerdata-nfs/nonrtric/volume3 + storageClassName: {{ .Values.nonrtric.volume3.storageClassName }} + +{{- end }} + diff --git a/nonrtric/helm/nonrtric/values.yaml b/nonrtric/helm/nonrtric/values.yaml index c7cd68bc..4b07fb95 100644 --- a/nonrtric/helm/nonrtric/values.yaml +++ b/nonrtric/helm/nonrtric/values.yaml @@ -19,13 +19,18 @@ nonrtric: installA1controller: true installA1simulator: true installControlpanel: true - installEnrichmentservice: true + installInformationservice: true installRappcatalogueservice: true installNonrtricgateway: true installDmaapadapterservice: true + installDmaapmediatorservice: true + installHelmmanager: true volume1: size: 1Gi storageClassName: volume1 volume2: size: 1Gi - storageClassName: volume2 \ No newline at end of file + storageClassName: volume2 + volume3: + size: 1Gi + storageClassName: volume3 \ No newline at end of file diff --git a/nonrtric/helm/nonrtricgateway/resources/config/application.yaml b/nonrtric/helm/nonrtricgateway/resources/config/application.yaml index 124e23c3..0d96d68d 100644 --- a/nonrtric/helm/nonrtricgateway/resources/config/application.yaml +++ b/nonrtric/helm/nonrtricgateway/resources/config/application.yaml @@ -31,7 +31,7 @@ spring: predicates: - Path=/a1-policy/** - id: A1-EI - uri: https://enrichmentservice:9083 + uri: https://informationservice:9083 predicates: - Path=/data-producer/**,/data-consumer/** management: diff --git a/nonrtric/helm/nonrtricgateway/values.yaml b/nonrtric/helm/nonrtricgateway/values.yaml index 6082a5a5..6333376b 100644 --- a/nonrtric/helm/nonrtricgateway/values.yaml +++ b/nonrtric/helm/nonrtricgateway/values.yaml @@ -23,7 +23,7 @@ nonrtricgateway: image: registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: nonrtric-gateway - tag: 1.0.0 + tag: 1.1.0 service: httpName: http internalPort1: 9090 diff --git a/nonrtric/helm/policymanagementservice/values.yaml b/nonrtric/helm/policymanagementservice/values.yaml index 99700bab..b0e21c85 100644 --- a/nonrtric/helm/policymanagementservice/values.yaml +++ b/nonrtric/helm/policymanagementservice/values.yaml @@ -23,7 +23,7 @@ policymanagementservice: image: registry: "nexus3.o-ran-sc.org:10004/o-ran-sc" name: nonrtric-policy-agent - tag: 2.2.1 + tag: 2.3.0 service: allowHttp: true httpName: http diff --git a/nonrtric/helm/rappcatalogueservice/values.yaml b/nonrtric/helm/rappcatalogueservice/values.yaml index 34af14d5..507ed55e 100644 --- a/nonrtric/helm/rappcatalogueservice/values.yaml +++ b/nonrtric/helm/rappcatalogueservice/values.yaml @@ -21,17 +21,17 @@ rappcatalogueservice: imagePullPolicy: IfNotPresent image: - registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc' + registry: 'nexus3.o-ran-sc.org:10004/o-ran-sc' name: nonrtric-r-app-catalogue - tag: 1.0.0 + tag: 1.1.0 service: allowHttp: true httpName: http internalPort1: 9080 - targetPort1: 8080 + targetPort1: 8680 httpsName: https internalPort2: 9081 - targetPort2: 8433 + targetPort2: 8633 liveness: initialDelaySeconds: 20 periodSeconds: 10 diff --git a/ric-common/Common-Template/helm/nonrtric-common/templates/_dmaapmediatorservice.tpl b/ric-common/Common-Template/helm/nonrtric-common/templates/_dmaapmediatorservice.tpl new file mode 100644 index 00000000..740f318a --- /dev/null +++ b/ric-common/Common-Template/helm/nonrtric-common/templates/_dmaapmediatorservice.tpl @@ -0,0 +1,24 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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.dmaapmediatorservice" -}} + {{- printf "dmaapmediatorservice" -}} +{{- end -}} + +{{- define "common.container.dmaapmediatorservice" -}} + {{- $name := ( include "common.name.dmaapmediatorservice" . ) -}} + {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} diff --git a/ric-common/Common-Template/helm/nonrtric-common/templates/_helmmanager.tpl b/ric-common/Common-Template/helm/nonrtric-common/templates/_helmmanager.tpl new file mode 100644 index 00000000..736bff35 --- /dev/null +++ b/ric-common/Common-Template/helm/nonrtric-common/templates/_helmmanager.tpl @@ -0,0 +1,24 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# 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.helmmanager" -}} + {{- printf "helmmanager" -}} +{{- end -}} + +{{- define "common.container.helmmanager" -}} + {{- $name := ( include "common.name.helmmanager" . ) -}} + {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} diff --git a/ric-common/Common-Template/helm/nonrtric-common/templates/_enrichmentservice.tpl b/ric-common/Common-Template/helm/nonrtric-common/templates/_informationservice.tpl similarity index 86% rename from ric-common/Common-Template/helm/nonrtric-common/templates/_enrichmentservice.tpl rename to ric-common/Common-Template/helm/nonrtric-common/templates/_informationservice.tpl index c80cf2e5..5796e537 100644 --- a/ric-common/Common-Template/helm/nonrtric-common/templates/_enrichmentservice.tpl +++ b/ric-common/Common-Template/helm/nonrtric-common/templates/_informationservice.tpl @@ -14,11 +14,11 @@ # limitations under the License. # ################################################################################ -{{- define "common.name.enrichmentservice" -}} - {{- printf "enrichmentservice" -}} +{{- define "common.name.informationservice" -}} + {{- printf "informationservice" -}} {{- end -}} -{{- define "common.container.enrichmentservice" -}} - {{- $name := ( include "common.name.enrichmentservice" . ) -}} +{{- define "common.container.informationservice" -}} + {{- $name := ( include "common.name.informationservice" . ) -}} {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}} {{- end -}}