From 617e90ba478078855f468e8149734bd20f951573 Mon Sep 17 00:00:00 2001 From: priyanshu Date: Thu, 14 Mar 2019 12:56:55 +0530 Subject: Support execution control of SDC Workflow init Added a flag to decide whether init job is needed. Change-Id: I1f18675907e606ef6c123b1e6a587f108cab3f73 Issue-ID: OOM-1712 Signed-off-by: priyanshua --- kubernetes/sdc/charts/sdc-wfd-be/templates/deployment.yaml | 2 +- kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml | 2 +- kubernetes/sdc/charts/sdc-wfd-be/values.yaml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kubernetes/sdc/charts/sdc-wfd-be/templates/deployment.yaml b/kubernetes/sdc/charts/sdc-wfd-be/templates/deployment.yaml index fc1538f87a..84285c4a29 100644 --- a/kubernetes/sdc/charts/sdc-wfd-be/templates/deployment.yaml +++ b/kubernetes/sdc/charts/sdc-wfd-be/templates/deployment.yaml @@ -32,7 +32,7 @@ spec: release: {{ .Release.Name }} spec: initContainers: - {{- if .Values.global.initJob.enabled }} + {{- if .Values.initJob.enabled }} - name: {{ include "common.name" . }}-job-completion image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}" imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}" diff --git a/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml b/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml index 98de4760bf..2cfdacbe87 100644 --- a/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml +++ b/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -{{ if .Values.global.initJob.enabled }} +{{ if .Values.initJob.enabled }} apiVersion: batch/v1 kind: Job metadata: diff --git a/kubernetes/sdc/charts/sdc-wfd-be/values.yaml b/kubernetes/sdc/charts/sdc-wfd-be/values.yaml index 9d1fbe65cb..8f41fbd669 100644 --- a/kubernetes/sdc/charts/sdc-wfd-be/values.yaml +++ b/kubernetes/sdc/charts/sdc-wfd-be/values.yaml @@ -22,8 +22,6 @@ global: readinessImage: readiness-check:2.0.0 loggingRepository: docker.elastic.co loggingImage: beats/filebeat:5.5.0 - initJob: - enabled: true ################################################################# # Application configuration defaults. @@ -37,6 +35,9 @@ pullPolicy: Always # flag to enable debugging - application support required debugEnabled: false +initJob: + enabled: true + config: javaOptions: "-Xdebug -agentlib:jdwp=transport=dt_socket,address=7001,server=y,suspend=n -Xmx1536m -Xms1536m" cassandaAuthenticationEnabled: true -- cgit 1.2.3-korg