|
21 | 21 | # if not db.wipeAndInit, the external db must already be ready; so no need for init container |
22 | 22 | {{- else -}} |
23 | 23 | - name: "wait-for-couchdb" |
24 | | - image: "{{- .Values.docker.registry.name -}}busybox" |
| 24 | + image: "{{- .Values.docker.registry.name -}}{{- .Values.busybox.imageName -}}:{{- .Values.busybox.imageTag -}}" |
25 | 25 | imagePullPolicy: "IfNotPresent" |
26 | 26 | env: |
27 | 27 | - name: "READINESS_URL" |
|
33 | 33 | {{/* Init container that waits for kafka to be ready */}} |
34 | 34 | {{- define "openwhisk.readiness.waitForKafka" -}} |
35 | 35 | - name: "wait-for-kafka" |
36 | | - image: "{{- .Values.docker.registry.name -}}busybox" |
| 36 | + image: "{{- .Values.docker.registry.name -}}{{- .Values.busybox.imageName -}}:{{- .Values.busybox.imageTag -}}" |
37 | 37 | imagePullPolicy: "IfNotPresent" |
38 | 38 | # TODO: I haven't found an easy external test to determine that kafka is up, so as a hack we wait for zookeeper and then sleep for 10 seconds and cross our fingers! |
39 | 39 | command: ["sh", "-c", 'result=1; until [ $result -eq 0 ]; do OK=$(echo ruok | nc -w 1 {{ include "openwhisk.zookeeper_zero_host" . }} {{ .Values.zookeeper.port }}); if [ "$OK" == "imok" ]; then result=0; echo "zookeeper returned imok!"; else echo waiting for zookeeper to be ready; sleep 1; fi done; echo "Zookeeper is up; will wait for 10 seconds to give kafka time to initialize"; sleep 10;'] |
|
42 | 42 | {{/* Init container that waits for zookeeper to be ready */}} |
43 | 43 | {{- define "openwhisk.readiness.waitForZookeeper" -}} |
44 | 44 | - name: "wait-for-zookeeper" |
45 | | - image: "{{- .Values.docker.registry.name -}}busybox" |
| 45 | + image: "{{- .Values.docker.registry.name -}}{{- .Values.busybox.imageName -}}:{{- .Values.busybox.imageTag -}}" |
46 | 46 | imagePullPolicy: "IfNotPresent" |
47 | 47 | command: ["sh", "-c", 'result=1; until [ $result -eq 0 ]; do OK=$(echo ruok | nc -w 1 {{ include "openwhisk.zookeeper_zero_host" . }} {{ .Values.zookeeper.port }}); if [ "$OK" == "imok" ]; then result=0; echo "zookeeper returned imok!"; else echo waiting for zookeeper to be ready; sleep 1; fi; done; echo "Success: zookeeper is up"'] |
48 | 48 | {{- end -}} |
49 | 49 |
|
50 | 50 | {{/* Init container that waits for controller to be ready */}} |
51 | 51 | {{- define "openwhisk.readiness.waitForController" -}} |
52 | 52 | - name: "wait-for-controller" |
53 | | - image: "{{- .Values.docker.registry.name -}}busybox" |
| 53 | + image: "{{- .Values.docker.registry.name -}}{{- .Values.busybox.imageName -}}:{{- .Values.busybox.imageTag -}}" |
54 | 54 | imagePullPolicy: "IfNotPresent" |
55 | 55 | env: |
56 | 56 | - name: "READINESS_URL" |
|
61 | 61 | {{/* Init container that waits for at least 1 healthy invoker */}} |
62 | 62 | {{- define "openwhisk.readiness.waitForHealthyInvoker" -}} |
63 | 63 | - name: "wait-for-healthy-invoker" |
64 | | - image: "{{- .Values.docker.registry.name -}}busybox" |
| 64 | + image: "{{- .Values.docker.registry.name -}}{{- .Values.busybox.imageName -}}:{{- .Values.busybox.imageTag -}}" |
65 | 65 | imagePullPolicy: "IfNotPresent" |
66 | 66 | env: |
67 | 67 | - name: "READINESS_URL" |
|
72 | 72 | {{/* Init container that waits for ElasticSearch to be ready */}} |
73 | 73 | {{- define "openwhisk.readiness.waitForElasticSearch" -}} |
74 | 74 | - name: "wait-for-elasticsearch" |
75 | | - image: "{{- .Values.docker.registry.name -}}busybox" |
| 75 | + image: "{{- .Values.docker.registry.name -}}{{- .Values.busybox.imageName -}}:{{- .Values.busybox.imageTag -}}" |
76 | 76 | imagePullPolicy: "IfNotPresent" |
77 | 77 | env: |
78 | 78 | - name: "READINESS_URL" |
|
0 commit comments