Support execution control of SDC Workflow init 19/82219/1
authorpriyanshu <pagarwal@amdocs.com>
Thu, 14 Mar 2019 07:26:55 +0000 (12:56 +0530)
committerpriyanshua <pagarwal@amdocs.com>
Thu, 14 Mar 2019 07:26:55 +0000 (12:56 +0530)
Added a flag to decide whether init job is needed.

Change-Id: I1f18675907e606ef6c123b1e6a587f108cab3f73
Issue-ID: OOM-1712
Signed-off-by: priyanshua <pagarwal@amdocs.com>
kubernetes/sdc/charts/sdc-wfd-be/templates/deployment.yaml
kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml
kubernetes/sdc/charts/sdc-wfd-be/values.yaml

index fc1538f..84285c4 100644 (file)
@@ -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 }}"
index 98de476..2cfdacb 100644 (file)
@@ -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:
index 9d1fbe6..8f41fbd 100644 (file)
@@ -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