summaryrefslogtreecommitdiffstats
path: root/participant/participant-impl/participant-impl-kubernetes/src/main/resources/config
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2021-06-07 16:41:12 +0100
committerliamfallon <liam.fallon@est.tech>2021-06-09 14:34:20 +0100
commit030ba1a000fc78e4c8778be469a41b14538a58ea (patch)
tree234ef346f04a282628d25fb85647e75a93530fc2 /participant/participant-impl/participant-impl-kubernetes/src/main/resources/config
parent20c7487f77d0728d270b2bed34c2c798d17cc12d (diff)
Initial commit for kubernetes participant in CLAMP
Spring application that exposes REST end points for installing, uninstalling, onboarding and deleting of helm charts to/from local directory. CL runtime can also trigger installation and uninstallation of helm charts from both local and configured helm repositories. Junits will be committed as a separate review. Issue-ID: POLICY-3240 Change-Id: I7633b6fd6ad41fc8fa55d3722e44f1b2ec132e50 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'participant/participant-impl/participant-impl-kubernetes/src/main/resources/config')
-rw-r--r--participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/KubernetesParticipantConfig.json56
-rw-r--r--participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/application.yaml25
2 files changed, 81 insertions, 0 deletions
diff --git a/participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/KubernetesParticipantConfig.json b/participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/KubernetesParticipantConfig.json
new file mode 100644
index 000000000..620e05552
--- /dev/null
+++ b/participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/KubernetesParticipantConfig.json
@@ -0,0 +1,56 @@
+{
+ "name": "ControlLoopParticipantK8s",
+ "localChartDirectory": "/var/helm-manager/local-charts",
+ "infoFileName": "CHART_INFO.json",
+
+ "intermediaryParameters":{
+ "name":"Participant parameters",
+ "reportingTimeInterval":120000,
+ "description":"Participant Description",
+ "participantId":{
+ "name":"K8sParticipant0",
+ "version":"1.0.0"
+ },
+ "participantType":{
+ "name":"org.onap.k8s.controlloop.K8SControlLoopParticipant",
+ "version":"2.3.4"
+ },
+ "clampControlLoopTopics":{
+ "topicSources":[
+ {
+ "topic":"POLICY-CLRUNTIME-PARTICIPANT",
+ "servers":[
+ "localhost"
+ ],
+ "topicCommInfrastructure":"dmaap",
+ "fetchTimeout":15000
+ }
+ ],
+ "topicSinks":[
+ {
+ "topic":"POLICY-CLRUNTIME-PARTICIPANT",
+ "servers":[
+ "localhost"
+ ],
+ "topicCommInfrastructure":"dmaap"
+ },
+ {
+ "topic":"POLICY-NOTIFICATION",
+ "servers":[
+ "localhost"
+ ],
+ "topicCommInfrastructure":"dmaap"
+ }
+ ]
+ }
+ },
+ "databaseProviderParameters":{
+ "name":"PolicyProviderParameterGroup",
+ "implementation":"org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl",
+ "databaseDriver":"org.mariadb.jdbc.Driver",
+ "databaseUrl":"jdbc:mariadb://localhost:3306/controlloop",
+ "databaseUser":"admin",
+ "databasePassword":"passme",
+ "persistenceUnit":"ToscaConceptTest"
+ }
+}
diff --git a/participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/application.yaml b/participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/application.yaml
new file mode 100644
index 000000000..b4240036b
--- /dev/null
+++ b/participant/participant-impl/participant-impl-kubernetes/src/main/resources/config/application.yaml
@@ -0,0 +1,25 @@
+spring:
+ profiles:
+ active: prod
+
+participant:
+ file: src/main/resources/config/KubernetesParticipantConfig.json
+management:
+ endpoints:
+ web:
+ exposure:
+ include: "loggers,logfile,health,info,metrics,threaddump,heapdump"
+server:
+ # Configuration of the HTTP/REST server. The parameters are defined and handled by the springboot framework.
+ # See springboot documentation.
+ http-port : 8083
+
+logging:
+ # Configuration of logging
+ level:
+ ROOT: INFO
+ org.springframework: ERROR
+ org.springframework.data: ERROR
+ org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
+ file:
+ name: /var/log/helm-manager/application.log