aboutsummaryrefslogtreecommitdiffstats
path: root/participant/participant-impl/participant-impl-kubernetes/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2024-07-16Uplift Spring dependenciesadheli.tavares1-3/+5
Issue-ID: POLICY-5074 Change-Id: Ib88e02ffc6867a007abfd0322319caf672c00e45 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2024-06-21Remove local hashmap in k8s participantrameshiyer272-65/+58
Issue-ID: POLICY-5056 Change-Id: Idecdcb44de1f6f5dc5513e3bbb7c13a2fd7e29fa Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
2024-06-17Remove restarting implementation from participantsFrancescoFioraEst1-78/+0
Remove restarting implementation from participants and Remove local Map from a1pms and kserve participants. Issue-ID: POLICY-5046 Change-Id: I9cc2a33d603751c60007475414b45ca54f0aac25 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2024-05-10Fix chartmuseum sync issue in k8s participantrameshiyer271-4/+5
Issue-ID: POLICY-4968 Change-Id: Ieb4b49b4ca40faf1fb8b948e8326decd9c0ae493 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
2024-02-15Add old properties and new properties supportFrancescoFioraEst1-13/+7
Add old/new properties support in migrate and update, and add Java code backward compatibility. Issue-ID: POLICY-4930 Change-Id: I640bc2a858969168b13fe6cdbb557ebf920bafd5 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2024-02-07Permissions fix for clamp filessaul.gill4-0/+0
Issue-ID: POLICY-4925 Change-Id: I2a9f8e49aed3f1b7354c0540cef29723e87547ca Signed-off-by: saul.gill <saul.gill@est.tech>
2023-10-02Fix Sonar Issues for clamp/acmFrancescoFioraEst2-14/+17
Issue-ID: POLICY-4834 Change-Id: I4489dc66e9b20c8264ec88593f0b5d89d62f1ef8 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-09-27Add migration support in ACM participantsFrancescoFioraEst1-0/+7
Issue-ID: POLICY-4825 Change-Id: Iebdd0b8c4890e9c022f68396f11f7ba8c80bef00 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-09-25Upgrade Java 17adheli.tavares4-54/+10
Issue-ID: POLICY-4673 Change-Id: I01fd3677687b5d2e065d0cc131b338ed841d7e99 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2023-07-13Add restart support inside participantsFrancescoFioraEst1-0/+37
Issue-ID: POLICY-4747 Change-Id: I09ca3e373f8271fbfe612c031920058b744cf413 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-27Remove Thread support in kubernetes participantFrancescoFioraEst2-29/+51
Due the Thread support in Intermediary, Thread support in kubernetes participant could be removed. Issue-ID: POLICY-4741 Change-Id: Ia55697808c541991f99cc7630f25188937e15779 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-12Add failure handling support in IntermediaryFrancescoFioraEst2-45/+1
Add Failure handling support in Intermediary, and refactor the communication between Participant and Intermediary. Issue-ID: POLICY-4707 Change-Id: Ica22e0e820efda372886d6d8da9c3526633321e2 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-06-06Add Failure handling support in all ACM-participantsFrancescoFioraEst1-2/+45
In any transition (like deploy, undeploy,  lock, unlock, update, delete) a participant should respond with the final state of transition, a status indicator (stateChaneResult) indicating if error has occurred and a message. Issue-ID: POLICY-4706 Change-Id: I424bc6d620f476392baee8904e21d3a6c7aa8d6b Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-05-16Add participant capability to send message with status and propertiesFrancescoFioraEst1-4/+2
Add participant capability to send message with status and properties to ACM-R when those values need to be change. Issue-ID: POLICY-4679 Change-Id: Idca5796c199b235e1f829097316c50688a351e80 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-17Fix sonar security hotspotsaul.gill1-1/+8
Fixed issue with InterruptedException Issue-ID: POLICY-4562 Change-Id: I44f43a5f48091dc5c608009e286773264db33c04 Signed-off-by: saul.gill <saul.gill@est.tech>
2023-02-14Merge "Deployment and undeployment on Participant Intermediary"Liam Fallon1-49/+23
2023-02-13Remove unnecessary dependencies in policy/clampliamfallon1-2/+0
Issue-ID: POLICY-4482 Change-Id: Id303d1203ebe0e490e1e9b964f3133ed4269019b Signed-off-by: liamfallon <liam.fallon@est.tech>
2023-02-13Deployment and undeployment on Participant IntermediaryFrancescoFioraEst1-49/+23
Handle AC Element Instance Deployment and undeployment on Participant Intermediary. Issue-ID: POLICY-4507 Change-Id: I6a6976a8893450467ee609a1a476dbfa473a0e82 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2023-02-01Upgrade and clean up dependenciesliamfallon1-20/+22
- Upgrade Hibernate - Upgrade Mockito - Upgrade Mockserver - Remove Powermock (no longer supported) and replace with spring-test ReflectionTestUtils - Upgrade Spring Framework - Add spring-security to allow authentication on unit tests using MockMVC Minor clean-up - Replace deprecated authorization configuraiton on spring boot applications with SecurityFilterChain bean - Change @LocalPort include on tests to use test include rather than runtime include - Remove unused imports - Remove unused constants and variables - Add deprecation annotations where required Issue-ID: POLICY-4482 Change-Id: I7356d60696330e868d4f67195ba55b80987f85b9 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-12-13Replace ToscaConceptIdentifier with UUID in Participant Messages ACMFrancescoFioraEst1-13/+10
Replace in all messages the reference to Automation Composition ToscaConceptIdentifier(name, version) with instanceId(UUID). Issue-ID: POLICY-4479 Change-Id: I7bc9a7494103b9c1752a1e2c6f6d5a527196913d Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-12-09Merge "Increase code coverage of k8s-participant module"Liam Fallon2-2/+4
2022-12-08Increase code coverage of k8s-participant modulerameshiyer272-2/+4
Unit tests with static mocks are being ignored in the build causing drop in the code coverage of k8s participant module. Static implementation in the code has been changed as it is not required. Code coverage improved to 85% Issue-ID: POLICY-4477 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I82facafffb8da1823699f63da480951b60060888
2022-12-06Replace SpringFox with SpringDoc in CLAMPliamfallon4-72/+103
This commit: - Remove springfox from CLAMP - updates the commissioning, AC Element, and K8S particiapnt to use the generated interface rather than the hard coded one - removes swagger annotations from handwritten code - implements SpringDoc for the <base_path>/v3/api-docs on endpoints Issue-ID: POLICY-4404 Change-Id: I49f48bc7828cb49dab854ef9ed16a9aa377983e1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-11-17Update participans to swagger v3FrancescoFioraEst1-26/+26
Participant Kubernetes Rest Controller is enabled only for testing and ACM Element is an application for testing, so they not need yaml endpoints definition and Contract testing. Issue-ID: POLICY-4459 Change-Id: Ibdab1b1fb6522e615eba182e8e3a332dec5b96fc Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-11-03Add Prometheus metric messages for ACM participantsFrancescoFioraEst1-0/+46
Issue-ID: POLICY-4433 Change-Id: I625c9ee26bb2451e0dcfbb4bbf7288dcc0effb50 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-10-28Remove old implementation of statistics in ACM participantsFrancescoFioraEst1-20/+0
The old implementation of statistics in ACM-participants can be removed due the Prometheus metrics support. Issue-ID: POLICY-4420 Change-Id: I0785b269614aba51f94e71a3fe931541c1918b0c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-09-20Fix PodStatus Validator failing in K8sParticipantFrancescoFioraEst2-29/+38
Fix PodStatus Validator failing in K8sParticipant using service template for Test and Verification of ACM State Management. Issue-ID: POLICY-4355 Change-Id: I63f8ed2c4991422dd43749151387ff54ba7d6071 Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2022-06-20Fix K8s participant fails to verify the status of the deployed podsrameshiyer271-2/+2
The participant verifies the status of the deployed pods in the cluster with the string name appending the release name and chart id. Verification would fail if the name of the pod doesn't contain the helm release name, hence removing the same. Issue-ID: POLICY-4236 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I1f63452aa1135d59cc4c4daa3f9303a18fe0702d
2022-05-17Add user configurable parameter for permitted helm repo protocolsrameshiyer272-6/+9
User can configure the permitted helm repository protocols http/https based on the requirement. Issue-ID: POLICY-4113 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ib7c91413babd15d0bd22ceffe10cdc1c3a6a0fd0
2022-04-11Rename controlloop to ACMSirisha_Manchikanti1-2/+2
Issue-ID: POLICY-3941 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I3a9d66b5f6be55e722bb15326d0af83a1b698a02
2022-03-01Accept only Whitelisted Repos from Tosca TemplateLathish5-21/+78
Issue-ID: POLICY-3894 Change-Id: Iaffaf3f1243f6070c600a58891899e9e1e326732 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-02-23Fix helm exception when there are no repo's configuredLathish3-21/+40
Issue-ID: POLICY-3874 Change-Id: I6734654049abeeb391b58df566992ab102a2894c Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-02-18Rename TOSCA Control Loop to ACMliamfallon17-104/+109
This commit renames the TOSCA Control Loop functionality in CLAMP to Automation Composition Management. This review is a direct renaming review and, as everything is renamed together it is large. Issue-ID: POLICY-3939 Change-Id: I28f0a6dd889bf3570a4c1365ae9e71fc58db6d6c Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-02-15Disable the helm endpoints by default in clampLathish1-1/+3
Issue-ID: POLICY-3894 Change-Id: I81548c77fe0f9030c3bc7e8a72e113b234ff9010 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-02-04Fix K8s State change from Uninitialized to Passive only when pod deployment ↵Lathish1-10/+21
is successful Issue-ID: POLICY-3874 Change-Id: Ib2ca3a5df8b15a0fa544fea8d0cbe794292d3d09 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-02-01Fix K8s participant Error when helm repo is not configuredLathish1-12/+21
Issue-ID: POLICY-3874 Change-Id: Ib28e427b6f498c89b8ab5b1f5bf6c88e6c9fc919 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2021-11-02Remove code smells in controlloop runtimeSirisha_Manchikanti2-5/+12
Remove code-smells reported by sonar cloud https://sonarcloud.io/project/issues?id=onap_policy-clamp&resolved=false Issue-ID: POLICY-3540 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I8ed1c4599e7eeebbc3a31e74cea4148eb0435847
2021-09-29Fix CL state change failures on participantsrameshiyer271-3/+3
Issue-ID: POLICY-3685 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ibec537d1ab55fd921481294fc3e193d7f1dc7912
2021-09-08Remove DCAE participant and its referencesSirisha_Manchikanti1-2/+3
DCAE interactions are handled by k8s-participant from Istanbul due to the helm migration of DCAE services. Cloudify manager is no longer used in DCAE. Issue-ID: POLICY-3630 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: Ifc4cb2491d10cbb57c2e886480f4df7a691f2166
2021-09-08Merge "Fix parsing of type heirarchy for nodetypes"Liam Fallon1-8/+12
2021-09-07Fix parsing of type heirarchy for nodetypesSirisha_Manchikanti1-8/+12
Fixed an issue where a ControlLoopElement with type defined in node-types is not parsed. This commit also includes changes to save the state of a controlLoopElement coming from ControlLoopAck message into runtime database. Issue-ID: POLICY-3575 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I1249cf2cabd4a499d80b401f94f7f42f08b350e3
2021-09-06Fix bugs on k8s-particpantrameshiyer273-2/+9
Configure repository without port Add CL element state change Fix log directory creation inside container Issue-ID: POLICY-3629 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I4564025a94053342b21e6600e0ee7c563bd23243
2021-08-25Updated handling of ack messagesSirisha_Manchikanti1-3/+6
Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I5784debf2e17fd1018b3feb7c9e2ae08d5f93d23
2021-08-23Add support for configuring new helm repositoryrameshiyer277-35/+200
Issue-ID: POLICY-3480 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I2499cd8ab9a4cf6390c2c4d834264b3754855d23
2021-08-20sonar fix for clampTaka Cho3-8/+9
- bug: added InterruptedException for sleep - vulns: two false positve - removed some unused import - changed to use var for local variable Issue-ID: POLICY-3452 Change-Id: I8b4be1378a2aad8f68562b63f70853832673ce97 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-18Updated ControlLoop component messagesSirisha_Manchikanti1-30/+19
Updated controlloop messages (ParticipantUpdate, ControlLoopUpdate, ParticipantStatus) according to the following Wiki and added implementation for the corresponding updates in runtime-controlloop and participant components https://wiki.onap.org/display/DW/The+CLAMP+Control+Loop+Participant+Protocol Issue-ID: POLICY-3417 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I80d96a7553a89ca47de2aa35e09df5a5c792acfa
2021-07-16Add https support for k8s-participant endpointsrameshiyer271-25/+0
Removed additional http port connector configuration Enabling ssl in Dockerfile Issue-ID: POLICY-3334 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I229052f557b95b9aa565dbcf54c3dde30514b6ad
2021-07-14Support override parameters for k8s-participantrameshiyer277-76/+271
Add support for helm chart override parameters in TOSCA. Add support for monitoring Pod status after deployment. Note: ONAP Helm charts from OOM repository needs a global master password to be provided along with the helm command. Looking for suggestions here to avoid passing clear text password in TOSCA (KubernetesHelm.yaml). Thanks Issue-ID: POLICY-3433 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Ibcbe79d07caa9bff12de341c3d88c36a144796bc
2021-07-01Add Junits for kubernetes participant modulerameshiyer279-32/+57
Overall coverage for the module: 85% Issue-ID: POLICY-3241 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I00c7866ae598b9768d1616468a4c9bfe4cc76166
2021-06-28Convert Intermediary Participant to Spring and refactor ParticipantsFrancescoFioraEst3-14/+11
Issue-ID: POLICY-3370 Change-Id: I1541fc47b35c91f9ec86ab768bc3cec2cd78647c Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>