Support execution control of SDC Workflow init
Added a flag to decide whether init job is needed.
Change-Id: Ib40571048dac1d1161d756edc5d738b86aac1c7a
Issue-ID: OOM-1712
Signed-off-by: priyanshua <pagarwal@amdocs.com>
diff --git a/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml b/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml
index 2b14253..98de476 100644
--- a/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml
+++ b/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+{{ if .Values.global.initJob.enabled }}
apiVersion: batch/v1
kind: Job
metadata:
@@ -66,3 +67,4 @@
secretKeyRef: {name: {{ .Release.Name }}-sdc-cs-secrets, key: sdc_password}
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"
+{{ end }}
\ No newline at end of file