aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-11-02Fix registration failure due to improper handling braceshonoluluSatoshi Fujii5-44/+17
mergeIP function did not handle braces '{' properly and JSON structure was broken by the improper string replacement. This change removes mergeIP func and IP address is passed directly to Register and DeRegister functions. Issue-ID: MSB-534 Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> Change-Id: Icc8a1f00fba5248218d45e4d9476042c5c331004
2018-11-08fix typosStanislav Chlebec1-1/+1
Change-Id: I3f56a527a823e97d3bf79c02de9128f98ea9864b Signed-off-by: Stanislav Chlebec <stanislav.chlebec@pantheon.tech> Issue-ID: AAF-582
2018-06-29Remove juju/ratelimit to avoid LGPL issueHuabing Zhao16-640/+1022
Change-Id: I1bf246a713d07fc9891f23ea85fb40c7864f05ef Issue-ID: OOM-1271 Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
2018-03-19make kube2msb use pod secretv1.1.02.0.0-ONAP2.0.0-ONAPFrank A. Zdarsky1-1/+5
Issue-ID: OOM-811 Change-Id: I039b6bcc9a301751ba976b77c0f2cc3b904b8e9c Signed-off-by: Frank A. Zdarsky <fzdarsky@redhat.com>
2018-03-08add ut for init kubeClientLvbo1631-0/+15
cover 63.1% Issue-ID: MSB-168 Change-Id: Ibea46f67584156ea12fd3514baabd957c0161068 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-08add ut for bookkeeperLvbo1633-17/+112
Issue-ID: MSB-167 Change-Id: Ic1e1d2e1ec0347e02369dd76ea1d2bf9a8d40d8e Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-07add ut for SendPodWorkLvbo1631-0/+21
Issue-ID: MSB-166 Change-Id: I53dce8cf99cbd017672c8778201bb36316c09135 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-07add ut for SendServiceWorkLvbo1631-0/+23
Issue-ID: MSB-165 Change-Id: I61d11fdf1b4cc9da023b4a0aea23ae098231e289 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-07add ut for msb deregisterLvbo1631-0/+58
Issue-ID: MSB-172 Change-Id: I42b7617be1b1cf87c6b33ee07321a889f68b7424 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-07add ut for msb registerLvbo1631-0/+49
Issue-ID: MSB-171 Change-Id: I694b5bbbe6e920d989a1d56ca4466ada61336ca7 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-07add ut for Annotation2UnitLvbo1631-0/+71
Issue-ID: MSB-170 Change-Id: Ic19d05ee7ba3aa211e16741da4788e5b16b8fd96 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-07add ut for getKubeMasterUrlLvbo1631-1/+6
add unit test for URL parser which can get k8s URL from start variable Issue-ID: MSB-169 Change-Id: Ifb9e43b5a3a1a16c24ce22b122d23223616e0e7a Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-07add ut for getMsbUrlLvbo1631-0/+63
add ut for the method which get url from start variable Issue-ID: MSB-163 Change-Id: I50e6e01225b532b74b6b7766e8c9da7b9a6e5c9d Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-06add ut for removePod of msbLvbo1631-0/+4
Issue-ID: MSB-176 Change-Id: Iacf002a7ebda635989320a81be83700ec30bcf37 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-06add ut for removeService of msbLvbo1631-0/+68
Issue-ID: MSB-175 Change-Id: I47e35398c8e395f8db36b93301bf6f3cf958aa6c Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-06add ut for addPod of msbLvbo1631-2/+14
Issue-ID: MSB-174 Change-Id: Ib76ac3d7619b5152ac92af35678555a859d5018e Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-06add ut for addService of msbLvbo1631-0/+53
Issue-ID: MSB-173 Change-Id: Ia0b557ec4cb367e8ae111b3c2488e7fa10eeadda Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-06add ut for MergeIPLvbo1631-0/+37
Issue-ID: MSB-177 Change-Id: I057566b6fb83d8d4c06c3e64be603d24cc9fe92f Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-05add ut for updatePod of kubeLvbo1631-2/+40
Issue-ID: MSB-162 Change-Id: Id5f4e818567cb937ea2a9dc5bbe6e6dd081b5025 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-05add ut for remove pod of kubeLvbo1631-0/+29
Issue-ID: MSB-161 Change-Id: I3ac8ceab987a5315ec46d61d1b286d2cbd558e14 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-05add ut for addPod of kubeLvbo1631-0/+58
Issue-ID: MSB-160 Change-Id: Iac5e9310933cbcff9edc8f829840c6219e5658b1 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-05add ut for updateService of kubeworkLvbo1631-0/+31
Issue-ID: MSB-159 Change-Id: I8682d1eb06724451fb707fa980a424156232f82a Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-05add ut for removeService of kubeworkLvbo1631-0/+44
Issue-ID: MSB-158 Change-Id: I7d19999433a77558dbd5bce97771eb8d43be60c7 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-05add ut for addService method of kubeworkLvbo1631-0/+87
Issue-ID: MSB-157 Change-Id: I61502f15df28f90b3dc6f115fe94b8a93fd3a92b Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
2018-03-01Register cluster IP instead of external IPHuabingZhao1-9/+2
Issue-ID: MSB-153 Change-Id: Id8cd23ac0ab30a7467eebc7f59ad9dd28d22f317 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
2018-02-27Solve pod level service unregistration issueHuabingZhao1-1/+1
Issue-ID: MSB-150 Change-Id: Ib5d761a9f3936edf9121c4497d9f0d7d9f09706f Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
2017-12-22Support https service registrationamsterdamHuabingZhao2-0/+2
Issue-ID: OOM-539 Change-Id: Ifbb95750bd448c375bddf2433ac6ad0b5d642027 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
2017-10-26Supports token authentication with kubernetsHuabingZhao1-0/+5
Issue-Id: OOM-379 Change-Id: If5457672f29f2567a6773d96985b62ad8cef5d0c Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
2017-10-18Update the yaml for go lib to latestHuabingZhao14-209/+1821
Update yaml for go lib to latest and it's license has been changed to Apache 2. According to the upstream project, the license of go-yaml has been updated to Apache 2:https://github.com/go-yaml/yaml/blob/v2/LICENSE, change the reference code license within oom-registrator repo accordingly. Issue-Id: OOM-365 Change-Id: Idce4bfda96456031a296682b0fb6e663170ec099 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
2017-09-15Add path property supportHuabingZhao2-0/+2
Issue-Id: OOM-61 Change-Id: Ifde7c3987c41beb49b77556b20e6e2018d52e1aa Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
2017-09-04Use maven to build kube2msbHuabingZhao939-0/+509094
Issue-Id: OOM-61 Change-Id: Ic7e733c95e28b75b66535b343ae22c893db24531 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>