File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
charts/metal-control-plane/templates Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 74
74
value : {{ .Values.zap_encoding }}
75
75
- name : ZAP_LEVEL
76
76
value : {{ .Values.zap_level }}
77
+ - name : METAL_API_INIT_DATA_STORE
78
+ value : " false"
77
79
- name : METAL_API_DB_ADDR
78
80
value : {{ .Values.metal_api.db_address }}
79
81
- name : METAL_API_DB_PASSWORD
@@ -310,16 +312,22 @@ spec:
310
312
mountPath : /masterdata
311
313
initContainers :
312
314
- name : wait-for-api
313
- image : gempesaw/curl-jq
315
+ image : {{ .Values.images.metalctl.image }}:{{ .Values.images.metalctl.tag }}
316
+ imagePullPolicy : {{ .Values.images.metalctl.imagePullPolicy }}
314
317
env :
315
- - name : API_BASE_URL
316
- value : metal-api:{{ .Values.ports.metal_api }}{{ .Values.metal_api.base_path }}
318
+ - name : METALCTL_URL
319
+ value : http://metal-api:{{ .Values.ports.metal_api }}{{ .Values.metal_api.base_path }}
320
+ - name : METALCTL_HMAC
321
+ valueFrom :
322
+ secretKeyRef :
323
+ name : metal-api
324
+ key : admin_key
317
325
command :
318
326
- sh
319
327
- -c
320
328
- |
321
- set -eu
322
- until curl --output /dev/null --fail -s $API_BASE_URL/v1/ health; do echo waiting for $API_BASE_URL; sleep 2; done
329
+ set -exu
330
+ until /metalctl health; do echo "." && sleep 2; done
323
331
volumes :
324
332
- name : masterdata
325
333
configMap :
You can’t perform that action at this time.
0 commit comments