diff options
author | Jack Lucas <jflos@sonoris.net> | 2021-08-16 16:02:23 -0400 |
---|---|---|
committer | Jack Lucas <jflos@sonoris.net> | 2021-09-03 11:57:48 -0400 |
commit | d263e699d9bb39aca69970f311ac84b3f248acf4 (patch) | |
tree | c2944b8058a98e095c69203c45bc54b24c8b5161 /kubernetes/dcaegen2-services/common | |
parent | 3980a8cbeb63c885b123ac50033e32ed996bb39a (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/common')
-rw-r--r-- | kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_job.tpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_job.tpl b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_job.tpl index 6d52b2a087..f3c09161cc 100644 --- a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_job.tpl +++ b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_job.tpl @@ -55,7 +55,8 @@ spec: - name: dcae-config-delete image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.consulLoaderImage }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} + command: + - /opt/app/delete_key.sh args: - - --delete-key - {{ include "common.name" . }} {{ end -}} |