[COMMON] Update Makefiles to enable parallelization 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
[GLOBAL] Move to Gitlab Add all necessary files in order to move OOM repo to gitlab and also uses gitlab-ci features. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ie3ba8d22828b103219d590886a8c58825eff2eef
[GLOBAL] Migrate to helm v3 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
[GENERAL] Print helm binary used In order to know which helm binary is used, print it at start of global Makefile Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I2361feb2b28e55b8adfb5b8620e4fa49480674bd
[GENERAL] Fix setting of HELM_VER variable It turns out that helm v2 and helm v3 uses different format for the helm version command. If we use v3 version HELM_VER variable is empty when run on a system with helm v2. To fix this let's add a fallback and if we failed to obtain correct version information using v3 format then fallback to v2 one. Issue-ID: OOM-1 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I87757c9eadedfe197ec31f5c2814fa9eb894329a
[GLOBAL] Fix Makefile typo One of Makefile action is to copy `helm` directory into `packages` one. Change done in order to choose helm binary accidentally made this behavior to work _only_ if helm binary is `helm`. This patch set it back to previous behaviour for this particular command. Issue-ID: OOM-2562 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I22c52d538f9f396bd4028b6e0f0adcecb8e8df61
[AAI] Reintegrate AAI OOM charts in main repo AAI chart is currently in its own directory. As a lot will be done in the charts with tight coordination between "common" part and components parts, it's a lot easier to have everything in a same place for now. Issue-ID: OOM-2513 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I5e27f7de286bf74e6d3a443e1cb31f63b3d83265 [Update aai to commit 18d4bd165e12cb4d03baa318e506f0dda381cd89] Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Drop repo name in Helm's v3 "repo update" subcommand "helm repo update" accepts no arguments Change-Id: I216d50d9fa98f59191795f5625ec835158458978 Issue-ID: OOM-2562 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
[Tree-wide] Update helm repo after build Helm 3 no longer supports creation of a local repo as helm 2 did. Now we need to use external component named chartmuseum to provide us repo for helm charts. When we start chartmuseum for the first time repo is empty and during our build process we successively built helm charts to it. As a last chart we always build our umbrella chart called onap and also push it to repo. Unfortunately our local helm cache is unaware that this new chart is now available untill we push sth else or execute helm repo update which leads to really cryptic deployment failures. To mitigate this issue let's add a new target helm-repo-update which will be executed right after onap and just make sure that our local cache is up to date. WARNING: If you are using helm v3 and you build a single component for the first time on this machine or version of chart for the component that you are building has just changed recently it's not enough to run: $ make <component> You need to also run: $ make helm-repo-update after successful build of your component. Issue-ID: OOM-2562 Change-Id: I77020a3fb5666106b86c6a76477a57d9dd5af047 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Improve anti-staging checker. Checking if images are in release repository. Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Issue-ID: OOM-2616 Change-Id: Ibb4f7e51fb3a1afcebaecd04ca3e1a4bf62dd467
Update makefiles to use specific helm version 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
Use helm push plugin Change-Id: Ic0df69cdf5be0eaef749b784e59daec0c8ffff63 Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Issue-ID: OOM-2562
[GLOBAL] Add sleep 3 to avoid race condition We are facing some random failures in our gating due to race condition between our makefile and helm startup. To prevent that let's add a sleep 3 after helm serve. Yes we realize that it's not the proper solution but it's an easy win which is very readable compared to placing a proper solution in the makefile. Issue-ID: OOM-2511 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: If6b3332ea9f51e997f2a6057fff9d481b425104a
Fix: make all - returns multiple warnings Issue-ID: OOM-2412 Signed-off-by: Mateusz Pilat <m.pilat@partner.samsung.com> Change-Id: I7d02ebc6aa43a8e8aa89cea7860bba6b55723fa9
[Tree-wide] Make chart build process predictible 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
Add Makefile option to skip lining of helm charts For some reason after introducing our awesome templates to ONAP make command can take now quite a lot of time, which sometimes causes out CI jobs to fail. Command that takes so much time is helm lint. This patch adds a Makefile option that allows you to skip linting of helm charts and just build them. Example: make SKIP_LINT=TRUE Default behavior stays unchanged. Issue-ID: OOM-2055 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: Ic50bad0cc82892e1daecc5761d6144d788a79d9f
Give user link to submodule instructions Issue-ID: OOM-2245 Signed-off-by: Ubuntu <dgl@research.att.com> Change-Id: Ie5e63a847904c67be1804e97afac8b2a058685a6 Signed-off-by: Ubuntu <dgl@research.att.com>
Add helm plugins to public helm repo Needed to document the ability to add helm plugins via remote public helm repo. Change-Id: Iae1a67c2e0e2c7d79629a05e395975a51ed0d896 Issue-ID: OOM-1497 Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
Integration w common/postgres Patchset 1: first cut at integration with common/postgres Patchset 2: Mandeep Khinda - refactored charts to standardize Wired in shared postgres chart Patchset 6: Introduced simple dmaap/Makefile to force helm dep up in the deeper charts directory. Includes slight modification to parent make clean target Patchset 8: merge conflict again Change-Id: If59f08638bac8761ae5452b60f172c99fcf4ec86 Signed-off-by: Dominic Lunanuova <dgl@research.att.com> Issue-ID: DMAAP-117 Signed-off-by: Dominic Lunanuova <dgl@research.att.com>
Add repo index fix Fixes an issue where subchart build dependencies are not always resolved when using 'make repo' to start a local helm repo. Also added the start of a 'make repo-stop' to shutdown and cleanup a running local repo. Change-Id: I33667053637ea4980ad00e424378a156abbe1ad4 Issue-ID: OOM-830 Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>