summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/components
AgeCommit message (Collapse)AuthorFilesLines
2021-09-22[COMMON] Enforce checkbashisms tox profileGuillaume Lambert1-2/+2
- add checkbahims to tox.ini default profiles - remove -f options to unforce bashisms detection in explicit bash scripts and to differentiate treatments between bash and sh - migrate #!/bin/bash shebangs to #!/bin/sh for scripts without bashisms The following scripts have not been migrated since they still use bashisms difficult to migrate (mostly arrays - more details below) ./kubernetes/common/mariadb-init/resources/config/db_init.sh ./kubernetes/portal/components/portal-mariadb/resources/config/ \ mariadb/docker-entrypoint.sh ./kubernetes/helm/plugins/deploy/deploy.sh ./kubernetes/helm/plugins/undeploy/undeploy.sh ./kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh $ find . -not -path '*/\.*' -name *.sh -exec checkbashisms -f {} + 2>&1\ | grep line | cut -d' ' -f 7- | sort | uniq -c | sort -k1,1nr 18 (bash arrays, ${name[0|*|@]}): 2 (declare): 1 ($FUNCNAME): 1 (shopt): 1 (trap with ERR|DEBUG|RETURN): https://mywiki.wooledge.org/Bashism#Arrays https://mywiki.wooledge.org/Bashism#Special_Variables https://mywiki.wooledge.org/Bashism#Builtins https://www.oilshell.org/release/0.5.alpha2/test/spec.wwz/builtin-trap.html Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Id06ad1d45004321a293bdd26038d8da5f7b6b4ac
2021-08-17[SDNC] Update chart with service accountfarida azmy15-0/+50
Add service account to chart Issue-ID: OOM-2719 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: I263f53a60e32867f61b2d85cc4dc8a78d9701449
2021-07-12[SDNC] Fix indent level for nodeSelector and affinitySatoshi Fujii5-50/+34
When nodeSelector was given by values or override.yaml, helm deploy was failed due to wrong indentation in helm charts. This change fixed indentation level for nodeSelector and affinity in pod spec. Issue-ID: SDNC-1565 Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> Change-Id: Ie5446928e3f32d9333c04245fc0d2c0f98b3b4e7
2021-06-24[COMMON] Fix some bashismsGuillaume Lambert2-3/+3
pointed out by checkbashisms: - variable name HOSTNAME - source instead of . - sleep with suffix - string increments And migrate a few shebangs to /bin/sh Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I653c14454a3232b5a349ca1564ece53ddc94289d
2021-06-23[COMMON] Revert "[COMMON] Fix a few bashisms"Krzysztof Opasiak2-3/+3
This reverts commit 62178a49cc9e4088019d426636657d9f2980d242. This commit introduced regression on portal db config job which is now unable to start: /usr/local/bin/docker-entrypoint.sh: line 114: syntax error near unexpected token `(' Issue-ID: OOM-1 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I3cb72cd7625b180b364b713fe942d5956736ebef
2021-06-15[COMMON] Fix a few bashismsGuillaume Lambert2-3/+3
pointed out by checkbashisms: - variable name HOSTNAME - source instead of . - variable increments - sleep with suffix And migrate a few shebangs to /bin/sh Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I82981bcff17e88cf824935b841ce37a585ddde00
2021-05-12[SDNC] Install latest service release (SR3) of OpenDaylight AluminumDan Timoney4-4/+4
This version bump installs the latest service release of OpenDaylight Aluminum (SR3). This was released too late for inclusion in the initial Honolulu release, but contains bug fixes that are needed for SDN-R and so is being released as part of the Honolulu maintenance release Issue-ID: SDNC-1542 Issue-ID: CCSDK-3285 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I8b2c9763958bd33d41560d609c31bdc2f46cdcce
2021-04-27Merge "[COMMON] Fix condition equality bashisms"Krzysztof Opasiak4-4/+4
2021-04-22[SDNC] Bump version to install license/bug fixDan Timoney4-4/+4
Version bump on sdnc images to install license fix to address issue identified in latest license scan, and to install fix for bug in basic_vm_model test (SDNC-1515) Issue-ID: SDNC-1507 Issue-ID: SDNC-1515 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I80721c0ce88ce2654b637d7f6748441496a684e6
2021-04-16[COMMON] Fix condition equality bashismsGuillaume Lambert4-4/+4
pointed out by checkbashisms. $ mycmd=$(tox -e checkbashisms | grep "(should be 'b = a')" | sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i -e '\2s/==/=/g' \1;@") $ eval $mycmd Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I9032130bc4717e111de11a73187c2f1052376e45
2021-04-13[COMMON] Fix shell scripts missing shebangsGuillaume Lambert1-2/+2
pointed out by checkbashisms. $ tox -e checkbashisms |grep 'interpreter line' | cut -d' ' -f2 |xargs grep -lv '#!/bin/sh' | xargs sed -i -e '1i#!/bin/sh' -e '1i\\' plus manual fixes Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ic41fec6ebadd162cecf889f2b119ac82551bd21d
2021-04-06Merge "[SDNC] Enable SDNC to use external oauth provider"Sylvain Desbureaux2-1/+8
2021-04-02[SDNC] Enable SDNC to use external oauth providerdemskeq82-1/+8
- add additional environment variables - add config file for external oauth-providers Issue-ID: OOM-2675 Signed-off-by: demskeq8 <alexander.dehn@highstreet-technologies.com> Change-Id: I235d3f46f5d109a1e82bdaa3c9de97508116fbe3 [Improve secretes handling] Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2021-03-31[CCSDK-SDNC] Bump versions for HonoluluDan Timoney4-4/+4
Bump versions of CCSDK (including CDS) and SDNC images for SDNC Honolulu release. Fixed issues found in CDS command-executor and py-executor pods. Added missing env variable settings. Issue-ID: CCSDK-3125 Issue-ID: SDNC-1473 Issue-ID: CCSDK-3192 Issue-ID: CCSDK-3197 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Id3bbe696313c568dc9ffb328715a7fc572330411
2021-03-24[DOC][COMMON] Prepare Honolulu releaseSylvain Desbureaux10-18/+18
Updating the documentation and bumping version to 8.0.0 Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I6f942f1466fed64264c44fb8fc0e1ffc93a98f18
2021-03-02[COMMON] Get rid of python2Guillaume Lambert1-1/+2
Python 2 is no more supported and Python 3 must be used. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I81158561fa0af4b1441b27b3a4546b815fb659e3
2021-01-13[SDNC] Bump versions for Guilin mtce release 1Dan Timoney4-4/+4
Bump SDNC docker version to 2.0.5 for Guilin maintenance release. This release contains bug fixes related to the Transport Slicing use case (see Issue-ID footers for list of Jiras addressed) Issue-ID: SDNC-1431 Issue-ID: CCSDK-3075 Issue-ID: CCSDK-3013 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I87526ad058b413692cb731d3cad1457efbefc108
2020-11-30[COMMON][DOC] Bump version GuilinSylvain Desbureaux10-16/+16
Update charts and requirements to 7.0.0. Create release notes for Guilin Update documentation Issue-ID: OOM-2638 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I965ed6b6ebb7d74bfddaff73edd3dd55a657841c
2020-11-30Merge "[SDNC] Uses new tpls for repos / images"Krzysztof Opasiak15-40/+28
2020-11-27[SDNC] Uses new tpls for repos / imagesSylvain Desbureaux15-40/+28
This commit makes SDNC chart to use the new generator for repositories and images. Issue-ID: OOM-2364 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Iec8379934829947be1cb466b007c949a8448e742
2020-11-27[SDNC-WEB] Remove invalid parameter from deploymentGrzegorz-Lis1-1/+0
Remove serviceName parameter from deployment. Parameter reserved for startefulSet. Issue-ID: SDNC-1427 Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com> Change-Id: Ic949e1a465c3bb632cbb7c0c325ef7d358935e99
2020-11-18[SDNC] Upgrade to final SDNC Guilin docker versionDan Timoney4-4/+4
Upgrade to version 2.0.4 of SDNC docker containers, which contain fixes for the following High severity issues: CCSDK-2979: devicemanager onf14 influences ietf-alarms.yang using devicemanagers SDNC-1413: CCVPN - Transport Slicing: SDNC development - PATCH operation instead of POST SDNC-1414: CCVPN - Transport Slicing: SDNC development - Need to unset a context variable in a for loop node in DG Issue-ID: SDNC-1409 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Icf39ad2e8280ddd4cea53a54905b27f61bb05aab
2020-11-06Merge "[SDNC][CCSDK] Update SDNC and CCSDK image versions for Guilin RC1"Krzysztof Opasiak3-3/+3
2020-11-06Merge "[SDNC] fix broken sdnc-web deployment"Sylvain Desbureaux2-5/+21
2020-11-04[SDNC] fix broken sdnc-web deploymentAlexander Dehn2-5/+21
fix deployment.yaml Issue-ID: OOM-2600 Signed-off-by: Alexander Dehn <alexander.dehn@highstreet-technologies.com> Change-Id: Id8f8f6c341bed30ce26cc061b47aeb6e312e7bfa
2020-11-03[SDNC][CCSDK] Update SDNC and CCSDK image versions for Guilin RC1Dan Timoney4-4/+4
Update SDNC and CCSDK image versions to proper Guilin RC1 version. Issue-ID: CCSDK-2931 Issue-ID: SDNC-1402 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I9d711d6c3e7c3130680fe3459326be0b5dd2e555
2020-10-21[SDNC] change comment styleJakub Latusek12-0/+24
Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Change-Id: Ia390319f744931f435615af49246c0e13cdb8564 Issue-ID: OOM-2562
2020-10-16Update makefiles to use specific helm versionJakub Latusek1-6/+7
Helm is now called by HELM_BIN variable which by default is set to helm and makefiles use helm from path. HELM_BIN can be overwritten so user can have two version of helm in system and choose which one to use. Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Issue-ID: OOM-2562 Change-Id: I0917796aafe234e87afa0ac3c4c15720296276d5
2020-10-07[SDNC] Fix AAI SSL certification issueDan Timoney4-4/+4
Install version 2.0.2 of sdnc docker images, which contains a fix to issue where AAI interface was failing due to failed SSL certificate check. Issue-ID: SDNC-1371 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: Id14b823989cdd987d745d205458ec57712c2a3df
2020-09-25[SDNC] Use helm-push pluginJakub Latusek1-0/+5
Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Issue-ID: OOM-2562 Change-Id: I2c09ef07a3445e8eb199011cdc2aa0a9d3647dcf
2020-09-21[SDNC/CCSDK] Guilin version bumpDan Timoney4-4/+4
Bump image versions to use Guilin M4 version of SDNC images and of CCSDK dgbuilder. Note - SDNR remains disabled in this commit pending fix to its endpoint. Also, note that CDS version bump is not included - that will be submitted as a separate review. Issue-ID: SDNC-1355 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I8d660a8e303a18d4674f832b9239fa50c5abf3f2
2020-09-09Merge "Mounting of DMAAP listener properties for RANSlice"Sylvain Desbureaux2-0/+38
2020-09-04Mounting of DMAAP listener properties for RANSliceSandeep Shah2-0/+38
Mounting of DMAAP listener properties for RANSlice in SDNC DMAAP-Listener charts Issue-ID: OOM-2550 Signed-off-by: SandeepLinux <Sandeep.Shah@ibm.com> Change-Id: Iba8dde371ba78e784dfba6f04f7ccd925e140d4f
2020-09-04[GENERAL] Use readiness container v3.0.1Sylvain Desbureaux10-21/+16
Readiness container v3.x and up are now present in ONAP main repository. They're also not using root user anymore and then script path has changed. Finally, "job_complete" script has been integrated in main "ready" script. As those changes are significant, we must upgrade all the components at once. Depends-On: I5afa83892043f4844afe12e61724a8d368a9f2e0 Issue-ID: OOM-2545 Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com> Change-Id: I0b4eb5dd86390273532d67d0a9696e1cfcadf110
2020-08-31[SDNC] oom for clustered disaggregated SDN-RAlexander Dehn39-12/+1795
use disaggregated elasticserach DB from common Issue-ID: SDNC-1165 Signed-off-by: Alexander Dehn <alexander.dehn@highstreet-technologies.com> Change-Id: I0c6ac6549f6c144f0ed5a64ae76a1fa352f740d2
2020-07-23[SDNC] Make SDNC compatible with Kubernetes v1.17Grzegorz-Lis1-1/+4
Issue-ID: OOM-2466 Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com> Change-Id: Ia007cd54ae20fda08f6e4359248ea5dbac42ac92
2020-05-08[Tree-wide] Make chart build process predictibleKrzysztof Opasiak18-0/+1027
ONAP is built using plain makefile rules. List of targets is generated using wildcard function. Based on make changelog: http://git.savannah.gnu.org/cgit/make.git/tree/NEWS since version 3.82 wildcard is not going to sort its results which means that charts are being processed in an arbitrary order which may lead to build failure due to missing dependencies. Since version 4.3 make started sorting the wildcard results once again which may lead to build issues. To avoid that and make our builds predictible independently from Makefile version let's make sure that we always sort wildcard results. Addinally let's use 'file://' instead of '@local' for charts in common to resolve dependencies between them. Issue-ID: OOM-2399 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: Iacb02dcdbd577ce0e9ca1078dd0586d296ec9375