[CORD-3201]
Use new tosca-loader
Change-Id: I2f4ee6753e597417cc6e8031e386b167348479ac
diff --git a/xos-profiles/demo-exampleservice/templates/tosca-job.yaml b/xos-profiles/demo-exampleservice/templates/tosca-job.yaml
index 6b9b529..e08cf33 100644
--- a/xos-profiles/demo-exampleservice/templates/tosca-job.yaml
+++ b/xos-profiles/demo-exampleservice/templates/tosca-job.yaml
@@ -35,18 +35,16 @@
restartPolicy: OnFailure
containers:
- name: {{ .Chart.Name }}-tosca-loader
- image: {{ .Values.httpieImage | quote }}
+ image: {{ .Values.tosca_loaderImage | quote }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
- command: ["/bin/sh"]
- args:
- - "-c"
- - |
- for recipe in /opt/tosca/*
- do
- echo $recipe
- http --check-status --ignore-stdin POST http://xos-tosca:$XOS_TOSCA_SERVICE_PORT/run xos-username:{{ .Values.xosAdminUser }} xos-password:{{ .Values.xosAdminPassword }} @$recipe || exit 1
- echo ''
- done
+ env:
+ - name: XOS_USER
+ value: {{ .Values.xosAdminUser }}
+ - name: XOS_PASSWD
+ valueFrom:
+ secretKeyRef:
+ name: xos-admin-passwd-secret
+ key: password
volumeMounts:
- name: demo-exampleservice-tosca
mountPath: /opt/tosca