Merge "Add message-router dependency in blueprint-processor for kafka-listener."
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 9 Aug 2019 11:21:51 +0000 (11:21 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 9 Aug 2019 11:21:51 +0000 (11:21 +0000)
1  2 
kubernetes/cds/charts/cds-blueprints-processor/resources/config/application.properties
kubernetes/cds/charts/cds-blueprints-processor/templates/deployment.yaml

  #  limitations under the License.
  #
  # Web server config
 +### START -Controller Blueprints Properties
 +# Load Resource Source Mappings
 +resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability
 +
 +# Controller Blueprints Core Configuration
 +controllerblueprints.blueprintDeployPath=/opt/app/onap/blueprints/deploy
 +controllerblueprints.blueprintArchivePath=/opt/app/onap/blueprints/archive
 +controllerblueprints.blueprintWorkingPath=/opt/app/onap/blueprints/working
 +
 +# Controller Blueprint Load Configurations
 +# blueprints.load.initial-data may be overridden by ENV variables
 +controllerblueprints.loadInitialData=false
 +controllerblueprints.loadBluePrint=false
 +controllerblueprints.loadBluePrintPaths=/opt/app/onap/model-catalog/blueprint-model/service-blueprint
 +controllerblueprints.loadModelType=false
 +controllerblueprints.loadModeTypePaths=/opt/app/onap/model-catalog/definition-type/starter-type
 +controllerblueprints.loadResourceDictionary=false
 +controllerblueprints.loadResourceDictionaryPaths=/opt/app/onap/model-catalog/resource-dictionary/starter-dictionary
 +
 +# CBA file extension
 +controllerblueprints.loadCbaExtension=zip
 +
 +### END -Controller Blueprints Properties
 +
  blueprintsprocessor.grpcEnable=true
  blueprintsprocessor.httpPort=8080
  blueprintsprocessor.grpcPort=9111
@@@ -95,3 -71,15 +95,15 @@@ blueprintsprocessor.restclient.primary-
  blueprintsprocessor.restclient.primary-aai-data.username=aai@aai.onap.org
  blueprintsprocessor.restclient.primary-aai-data.password=demo123456!
  
+ # Kafka-message-lib Configuration
+ blueprintsprocessor.messageclient.self-service-api.topic=cds-producer
+ blueprintsprocessor.messageclient.self-service-api.type=kafka-basic-auth
+ ##ONAP Message Router Kafka Service##
+ blueprintsprocessor.messageclient.self-service-api.bootstrapServers=message-router-kafka:9092
+ blueprintsprocessor.messageclient.self-service-api.consumerTopic=cds-consumer
+ blueprintsprocessor.messageclient.self-service-api.groupId=cds-consumer-group
+ blueprintsprocessor.messageclient.self-service-api.clientId=cds-client
+ blueprintsprocessor.messageclient.self-service-api.kafkaEnable=false
@@@ -36,6 -36,10 +36,10 @@@ spec
          args:
          - --container-name
          - cds-db
+         {{- if .Values.dmaapEnabled  }}
+         - --container-name
+         - message-router
+         {{ end }}
          env:
          - name: NAMESPACE
            valueFrom:
@@@ -60,7 -64,7 +64,7 @@@
            {{ if .Values.liveness.enabled }}
            livenessProbe:
              httpGet:
 -              path: /api/v1/execution-service/ping
 +              path: /api/v1/execution-service/health-check
                port: {{ .Values.service.http.internalPort }}
                httpHeaders:
                - name: Authorization
@@@ -70,7 -74,7 +74,7 @@@
            {{ end }}
            readinessProbe:
              httpGet:
 -              path: /api/v1/execution-service/ping
 +              path: /api/v1/execution-service/health-check
                port: {{ .Values.service.http.internalPort }}
                httpHeaders:
                - name: Authorization
            - mountPath: {{ .Values.config.appConfigDir }}/logback.xml
              name: {{ include "common.fullname" . }}-config
              subPath: logback.xml
 +
 +          - mountPath: {{ .Values.config.appConfigDir }}/ONAP_RootCA.cer
 +            name: {{ include "common.fullname" . }}-config
 +            subPath: ONAP_RootCA.cer
 +
            - mountPath: {{ .Values.persistence.deployedBlueprint }}
              name: {{ include "common.fullname" . }}-blueprints
            resources: