aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2021-08-16 16:02:23 -0400
committerJack Lucas <jflos@sonoris.net>2021-09-03 11:57:48 -0400
commitd263e699d9bb39aca69970f311ac84b3f248acf4 (patch)
treec2944b8058a98e095c69203c45bc54b24c8b5161 /kubernetes/dcaegen2-services/components/dcae-snmptrap-collector
parent3980a8cbeb63c885b123ac50033e32ed996bb39a (diff)
[DCAEGEN2] Add Consul key delete job
Add a job for each microservice that deletes the Consul key holding the microservice's configuration when the microservice is undeployed. (Fixes a bug in an earlier version that would loop indefinitely if Consul had been undeployed first.) Issue-ID: DCAEGEN2-2669 Signed-off-by: Jack Lucas <jflos@sonoris.net> Change-Id: I9172fc014b79d2cc07c0b1a1a187a28c63b1838a
Diffstat (limited to 'kubernetes/dcaegen2-services/components/dcae-snmptrap-collector')
-rw-r--r--kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/templates/job.yaml19
-rw-r--r--kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/values.yaml2
2 files changed, 20 insertions, 1 deletions
diff --git a/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/templates/job.yaml b/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/templates/job.yaml
new file mode 100644
index 0000000000..177cc03347
--- /dev/null
+++ b/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/templates/job.yaml
@@ -0,0 +1,19 @@
+{{/*
+#============LICENSE_START========================================================
+# ================================================================================
+# Copyright (c) 2021 J. F. Lucas. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+*/}}
+{{ include "dcaegen2-services-common.consulDeleteJob" . }} \ No newline at end of file
diff --git a/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/values.yaml b/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/values.yaml
index 8cf650877e..60295b972a 100644
--- a/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/values.yaml
+++ b/kubernetes/dcaegen2-services/components/dcae-snmptrap-collector/values.yaml
@@ -34,7 +34,7 @@ filebeatConfig:
# InitContainer Images.
#################################################################
tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
-consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.0
+consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
#################################################################
# Application Configuration Defaults.