aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordglFromAtt <dgl@research.att.com>2018-10-13 18:18:58 +0000
committerdglFromAtt <dgl@research.att.com>2018-10-13 18:19:10 +0000
commit6350b1e1587249643371cbb5f1f91e7fb1317587 (patch)
tree1fbee0df0b12885404d8d50920cc013ae250abbf
parent6a40bca642e9213cd2f90d35fd58f35ce39a34b4 (diff)
Optionally set properties from configmap
Change-Id: Id0746bc49637321f17a4225795bc652f1827e100 Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-829
-rw-r--r--misc/dmaapbc13
-rw-r--r--pom.xml2
-rw-r--r--version.properties2
3 files changed, 13 insertions, 4 deletions
diff --git a/misc/dmaapbc b/misc/dmaapbc
index cef472e..0dff4d6 100644
--- a/misc/dmaapbc
+++ b/misc/dmaapbc
@@ -74,8 +74,17 @@ config() {
$APP_ROOT/misc/cert-client-init.sh
. misc/havecert.tmpl > etc/havecert
chmod +x etc/havecert
- . misc/dmaapbc.properties.tmpl > etc/dmaapbc.properties
- . misc/PolicyEngineApi.properties.tmpl > config/PolicyEngineApi.properties
+
+ # These files might be better provided in kubernetes configmaps
+ # so if they are already there, don't overwrite.
+ if [ ! -f etc/dmaapbc.properties ]
+ then
+ . misc/dmaapbc.properties.tmpl > etc/dmaapbc.properties
+ fi
+ if [ ! -f config/PolicyEngineApi.properties ]
+ then
+ . misc/PolicyEngineApi.properties.tmpl > config/PolicyEngineApi.properties
+ fi
set +x
}
diff --git a/pom.xml b/pom.xml
index ccf82e2..2a0474f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -365,7 +365,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jettyVersion>9.3.8.RC0</jettyVersion>
<eelf.version>0.0.1</eelf.version>
- <artifact.version>1.0.21</artifact.version>
+ <artifact.version>1.0.22</artifact.version>
<!-- SONAR -->
<jacoco.version>0.7.7.201606060606</jacoco.version>
<sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
diff --git a/version.properties b/version.properties
index acfc935..7408ce8 100644
--- a/version.properties
+++ b/version.properties
@@ -27,7 +27,7 @@
major=1
minor=0
-patch=21
+patch=22
base_version=${major}.${minor}.${patch}
# Release must be completed with git revision # in Jenkins