aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/portal
AgeCommit message (Collapse)AuthorFilesLines
2022-08-17[COMMON] Update Makefiles to enable parallelizationAndreas Geissler2-14/+20
All Makefiles are updated to support SKIP_LINT option, have a defined order of compilation (common -> components) to support the parallel compilation of charts using: make all -j8 (for 8 Jobs). Additionally use cm-push instead of push to use the new K8S/Helm version Issue-ID: OOM-3011 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de> Change-Id: If9903c9d5bc646b5ce54075acc616e98c4b6706e
2022-04-28Merge "[COMMON] Fix declare bashisms"Fiachra Corcoran1-2/+10
2022-04-25[COMMON] Fix shopt nullglob bashismguillaume.lambert1-1/+0
pointed out by checkbashisms. shopt, and therefore all the options it provides (only nullglob here) are not defined by POSIX and are bash-specific. The specific option nullglob is well documented in the bash manual. In short, it makes filename globbing patterns that do not match any filenames simply expanded to nothing rather than remaining unexpanded. $ echo my*file my*file $ shopt -s nullglob $ echo my*file This is actually useless in the script where it is used here since no blob is used to expand such filenames. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Id336c17a46c6e5c0748562e7cd8f0efa5570ce6d
2022-04-23[COMMON] Fix declare bashismsguillaume.lambert1-2/+10
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: I4940176970266238168009ffd56bce956c7ece69
2022-03-01[PORTAL] Update chart with service accountfarida azmy15-1/+49
Add service account to requirements, values and deployment/statefulset Issue-ID: OOM-2874 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: I878ccfce7d7e02875376bc5941af43d3f10fcb2d
2021-12-13[COMMON] Fix FUNCNAME bashismsguillaume.lambert1-8/+2
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: I949263ef21c3dd600b2040491428fdba6cba69ef
2021-12-08[COMMON] Fix "local var=XX" bashismsguillaume.lambert1-10/+21
Variable attribute 'local' is not POSIX but is LSB supported. It is available in other shells such as ash or dash. And in ksh, local is the default scope of functions vaiables. Though, the syntax "local var=XX" is only supported and found in bash. Sadly, this is not detected by checkbashims. - fix "local var=XX" bashisms - add a manual command in tox.ini to detect them in the CI https://wiki.ubuntu.com/DashAsBinSh#local https://wiki.ubuntu.com/DashAsBinSh#declare_or_typeset https://stackoverflow.com/questions/12000949/scope-of-variables-in-ksh Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Iff26e50cd352eeb760d923a4740a6f92184fe0f2
2021-12-07[GLOBAL] Migrate to helm v3efiacor14-167/+88
Move all Chart.yaml to use apiVersion: 2 Move dependencies from requirements.yaml to Chart.yaml Changes to all makeFiles Changes to helm deploy plugin Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I03c5290eee9e40f76eacbf171e774204cf5fb1c0 Issue-ID: OOM-2845
2021-11-16[PORTAL] Use log templateMaciej Wereski6-47/+21
Ability to turn off filebeat is needed as it is being deprecated. To achieve that existing log helper template is used. Issue-ID: OOM-1 Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com> Change-Id: I7e8df12aaf8e68f12a56d097d8045eeb0924e428
2021-10-15[COMMON] Bump ONAP versionSylvain Desbureaux12-24/+36
Use version 9.0.0 for Istanbul Also update the doc. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I03e11799bf487226784c98b04116f005c89d1e70
2021-09-26[COMMON] Add and run pre-commit linters via toxguillaume.lambert7-396/+396
- create a .pre-commit-config.yaml configuration file with * gitlint * trailing blanks linter * tabs removal linter - exclude .git folder from it - exclude Makefiles since tabs are mandatory by default in them - create a tox pre-commit profile to run it from tox note gitlint is not runnable at this pre-commit stage - create pre-commit-install and pre-commit-uninstall tox profiles to (un)install hooks locally and (un)perform tests at each "git commit" call (i.e. without calling manually the pre-commit tox profile) - precise pre-commit stages/types in the pre-commit configuration file so that hooks are installed correctly. This avoids messages about skipped tests when they are run at a wrong stage. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Ie95bb4f6f90be80b05a1398973caffeff7936881
2021-09-20[COMMON] Replace tabs by 4 ws in shell scriptsguillaume.lambert1-277/+277
with the following command $ find . -not -path '*/\.*' -name *.sh -exec sed -i 's/\t/ /g' {} + then realign manually what deserves it and in particular, unindent some EOF scripting tags so they do not trigger errors. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Ibfa463ec8083d5a39de18a54d9c1d8746710fe03
2021-09-08Merge "[COMMON] Fix ${p//pat/str} bashism"Krzysztof Opasiak1-2/+2
2021-09-07Merge "[COMMON] Fix brace expansion bashisms"Krzysztof Opasiak1-1/+1
2021-09-07[COMMON] Fix ${p//pat/str} bashismGuillaume Lambert1-2/+2
pointed out by checkbashisms Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ic3162f08f39026bf15a2c5a990b0078635c1c918
2021-09-06[COMMON] Fix ${foo:3[:1]} bashismsGuillaume Lambert1-2/+2
pointed out by checkbashisms Issue-ID: OOM-264 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ief3b2595a55f0e7a0a2e7ab05857848c99ce42f9
2021-08-31[COMMON] Fix brace expansion bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: If162bba41eec0998bd6eaf321eebe2e7834aca29
2021-06-29[COMMON] Fix read -s, echo -e and $'...' bashismsGuillaume Lambert1-2/+2
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I527f9b8dcad98a5dd9eb30390d26c95c1d918c09
2021-06-24[COMMON] Fix array variables incrementsGuillaume Lambert1-9/+9
pointed out by checkbashisms in docker-entrypoint.sh - migrate to straight strings the arrays used to pass options Arrays are supported in bash but are not POSIX compliant. - remove useless double quotes in variables used to pass options Double quotes are often used to avoid globbing and word splitting. Since possibles values are strictly constrained here, they are not required. https://github.com/koalaman/shellcheck/wiki/Sc2086 Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I4f75d8b5a00afb87b5982cb31559f29c8863c8a5
2021-06-23[COMMON] Revert "[COMMON] Fix a few bashisms"Krzysztof Opasiak1-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-22Merge "[COMMON] Fix a few bashisms"Sylvain Desbureaux1-3/+3
2021-06-21Merge "[COMMON] Fix ${!name} bashisms"Sylvain Desbureaux1-2/+8
2021-06-16[COMMON] Fix $BASH_SOURCE and pushd/popd bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ic9c4edc0fc6bd94a95bcb85d84379e868fb09930
2021-06-15[COMMON] Fix a few bashismsGuillaume Lambert1-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-26[COMMON] Fix ${!name} bashismsGuillaume Lambert1-2/+8
pointed out by checkbashisms. Note this kind of indirections can only be replaced directly in POSIX by commands using eval. Security risks must be evaluated for each context where eval is called. For a safe use, the context must ensure that only a limited number of possible constrainted values are passed to eval. https://mywiki.wooledge.org/Bashism#Parameter_Expansions https://mywiki.wooledge.org/BashFAQ/006#Indirection Issue-ID: OOM-264 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Id27f3ffd1ddb092a9c038d3a45d9e3278720eb62
2021-05-17[COMMON] Fix condition bracket bashisms - step 2Guillaume Lambert1-4/+4
pointed out by checkbashisms $ mycmd=$(tox -e checkbashisms | grep '(\[\[ foo \]\] should be \[ foo \])' | sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i '\2s/\\\[\\\[\\\( [^]]*\\\)\\\]\\\]/[\\\1]/g' \1;@") $ eval $mycmd plus fix manually quoting hells induced and bash specific regex and multi-conditions Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ia9626256b5efc837ba12b25d351c8d8a0ba75fb4
2021-05-12[PORTAL] Fix portal-app startup argumentsMarat Salakhutdinov1-1/+1
Fix portal-app startup arguments to make it work with aaf disabled. Issue-ID: OOM-2747 Signed-off-by: Marat Salakhutdinov <marat.salakhutdinov@bell.ca> Change-Id: I32d9992125b38e8074f7ffcabfdc8e323f5a58c6
2021-05-10[COMMON] Fix &> and <<< bashismsGuillaume Lambert1-5/+5
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I958443b2e4b4f6391a74f957314d7d3fcf321cd0
2021-05-03[PORTAL] Simplify cert retrieval scriptSylvain Desbureaux2-8/+6
As retrieving values is now done via a generic script, let's clean a little bit cert retrieval in order to remove unneeded part. Issue-ID: OOM-2688 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ifdd2ce7387d00e0a0c341c395f4454393d3f321d
2021-04-13[COMMON] Fix shell scripts missing shebangsGuillaume Lambert1-1/+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-03-24[DOC][COMMON] Prepare Honolulu releaseSylvain Desbureaux12-24/+24
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-02-24[CASSANDRA] Loosen probe check timeSylvain Desbureaux2-4/+8
As for main cassandra chart, with Azure and also some internal deployments, `nodepool status` takes more than 3 seconds and so cassandra is not coming up or quite randomly. This patch gives more room to `nodepool status` to answer. Issue-ID: OOM-2687 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: If6a148a432ed3d83a1e89d38f20fe87e89ab0f57
2021-02-16[PORTAL] Fix Heap config generationSylvain Desbureaux2-11/+19
When tried to apply heap configuration for small flavors, weird side effects have appeared. This patch solves them by doing a more generic way of configuring heap variables for cassandra. Issue-ID: PORTAL-1037 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Iebe2edd5281213580d9e1d4d86f9ca0b2abd2601
2021-02-08[PORTAL][CASSANDRA] Configure HeapSylvain Desbureaux2-3/+17
When on small flavor, limits set are too small to allow a smooth start of cassandra with usual Heap configurations. This patch adds heap configuration when on small. Issue-ID: PORTAL-1037 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Icdbc4fd5892c3f350642ffdd924e4c36f0135019
2021-01-20[PORTAL] Fix ONAP Portal redirect to internal portmarcinrzepeckiwroc1-1/+1
Incorrect redirection to the login page. Unlogged user after entering to https://portal.api.simpledemo.onap.org:30225/ONAPPORTAL/app/applicationsHome should be redirected to https://portal.api.simpledemo.onap.org:30225/ONAPPORTAL/login.htm instead of http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm Issue-ID: PORTAL-1055 Signed-off-by: Marcin Rzepecki <marcin.rzepecki@nokia.com> Change-Id: I48673fa45aea66f664e9c22107fcaef00305264a
2021-01-08[PORTAL] Make Portal use generic Cassandra imageGrzegorz-Lis3-17/+59
Portal uses currently a customized, old Cassandra Image (cassandra_music:3.0.0) which doesn't support dual stack (IPv4 and IPv6). Intention of this change is to replace this image with generic, bitnami image. Issue-ID: PORTAL-1037 Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com> Change-Id: I6d76a09328adc20b408f1e22fd608cd44b074712
2020-11-30[COMMON][DOC] Bump version GuilinSylvain Desbureaux12-24/+24
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-21[PORTAL] Uses new tpls for repos / imagesSylvain Desbureaux16-41/+33
This commit makes Portal 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: Ib49380460bbbf581c364033fc0fde707ee84082b
2020-11-05[PORTAL] Update image versionsSandeep Shah4-5/+5
Includes image updates to version 3.4.2 and disabled A&AI Ui from portal platform Issue-ID: OOM-2618 Signed-off-by: SandeepLinux <sandeep.shah@att.com> Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I98f4b477c3ac4d75ae9ef40387c6e931c1afb352
2020-10-27Merge "[PORTAL ] Non-root user DB access from WMS"Krzysztof Opasiak5-8/+105
2020-10-27[PORTAL ] Non-root user DB access from WMSSandeep Shah5-8/+105
Update portal-widget HELM charts to use non- root user access to the portal mariadb backend Issue-ID: OOM-2601 Signed-off-by: SandeepLinux <ss048t@att.com> Change-Id: I434ce85f1d0922d87fca35f692064a9b5e757954 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
2020-10-22Merge "[Tree-wide] Add helmignore to ignore components"Sylvain Desbureaux1-24/+22
2020-10-21[PORTAL] change comment styleJakub Latusek33-0/+66
Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Change-Id: If275a72fbfe0c6bc283991c00d7fef6d9b7d686e Issue-ID: OOM-2562
2020-10-21[Tree-wide] Add helmignore to ignore componentsKrzysztof Opasiak1-24/+22
components directory takes up a lot of space and is included during helm package Lets remove it using .helmignore This is just a copy of idea showed in: "[OOF] Add helmignore to ignore components" by krishnaa96 <krishna.moorthy6@wipro.com> Issue-ID: OOM-2534 Suggested-by: krishnaa96 <krishna.moorthy6@wipro.com> Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I25c82e79ba2c472b7761a63365573188ab8db56b
2020-10-16Update makefiles to use specific helm versionJakub Latusek2-12/+14
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-09Merge "[Portal] Update docker-entrypoint.sh for portal-mariadb"Sylvain Desbureaux5-147/+310
2020-10-09Merge "[Portal] Added Logging Compliance Specification Details"Sylvain Desbureaux2-2/+2
2020-10-08[Portal] Update docker-entrypoint.sh for portal-mariadbSandeep Shah5-147/+310
Update docker-entrypoint.sh file, since we are going with the latest mariaDB version 10.5.5 and also updated with released images Issue-ID: OOM-2587 Signed-off-by: SandeepLinux <Sandeep.Shah@att.com> Change-Id: If903ccbfb5dc820219b7d0d28d274bd40b033887 Signed-off-by: statta <statta@att.com>
2020-10-02[PORTAL] Bug fixes in Helm chartsSandeep Shah2-4/+34
Bug fixes in deployment.yaml file for both portal-app and sdk components Issue-ID: OOM-2582 Signed-off-by: SandeepLinux <Sandeep.Shah@att.com> Change-Id: I4123ca8f48f503170466f7a965696406c14635d6 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
2020-10-02[PORTAL] Non-root user for back-end databaseSandeep Shah11-8/+81
Creation of a non-root user for portal backend mariaDB database. Update portal apps, such as front-end app and sdk app, to use the non-root user to access back-end mariaDB database Issue-ID: OOM-2576 Signed-off-by: SandeepLinux <Sandeep.Shah@att.com> Change-Id: Ie13c7d190c08a4075058b97b352f4b71bbb0aa47 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>