Added option to disable kotlin script cache 38/99238/3
authorSebastien Premont-Tendland <sebastien.premont@bell.ca>
Thu, 5 Dec 2019 21:27:15 +0000 (16:27 -0500)
committerSebastien Premont-Tendland <sebastien.premont@bell.ca>
Mon, 9 Dec 2019 15:22:56 +0000 (10:22 -0500)
commit8bc22c9b5c0815f2ea56391982e9e8aafcf6fc5e
treefac38251e49191990f3707c65dd64851ddabce6d
parentdac9afbc6df66dfe3700b37f12b51bccebf74e83
Added option to disable kotlin script cache

using environment variable USE_SCRIPT_COMPILE_CACHE.

Disabling the cache allow to scale out the BP pod
without having lock file issue when using k8s
NFS provisioner for PV.

It also forces each pod to read the jar from disk
at every request. This way they always create an instance
with the latest jar file.

Issue-ID: CCSDK-1969

Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca>
Change-Id: I05afbdb4d49847761142542d1beca78947f032f3
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/BluePrintConstants.kt
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/scripts/BluePrintCompileService.kt
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/scripts/BluePrintCompilerCache.kt
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/utils/BluePrintFileUtils.kt