summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml')
-rw-r--r--kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml b/kubernetes/sdc/charts/sdc-wfd-be/templates/job.yaml
index 2b142533c7..98de4760bf 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 @@ spec:
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