Skip to content

Commit

Permalink
fix(cf-idw): added wil-witness-sample.json to configmap and removed u…
Browse files Browse the repository at this point in the history
…nused env vars
  • Loading branch information
rcmorano committed Jul 15, 2024
1 parent 1a121ca commit 53de1cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
14 changes: 12 additions & 2 deletions charts/cf-idw/templates/witness-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ metadata:
data:
witness-init.sh: |
#!/bin/bash
if [ ! -e ${KERI_SCRIPT_DIR}/data/wil-witness-sample.json ]; then
if [ ! -e ${KERI_SCRIPT_DIR}/db/data.mdb ]; then
mkdir -p ${KERI_SCRIPT_DIR}/data
kli init --name witness --nopasscode --config-dir ${KERI_SCRIPT_DIR} --config-file witness
kli incept --name witness --alias witness --config ${KERI_SCRIPT_DIR} --file ${KERI_SCRIPT_DIR}/data/wil-witness-sample.json
kli incept --name witness --alias witness --config ${KERI_SCRIPT_DIR} --file /configmap/wil-witness-sample.json
fi
wil-witness-sample.json: |
{
"transferable": false,
"wits": [],
"icount": 1,
"ncount": 1,
"isith": "1",
"nsith": "1"
}
10 changes: 2 additions & 8 deletions charts/cf-idw/templates/witness-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ spec:
env:
- name: KERI_SCRIPT_DIR
value: /usr/local/var/keri
- name: KERI_DEMO_SCRIPT_DIR
value: /usr/local/var/keri/demo
- name: KERI_TEMP_DIR
value: /tmp
volumeMounts:
- mountPath: /usr/local/var/keri
name: keri-data
Expand All @@ -54,10 +50,6 @@ spec:
env:
- name: KERI_SCRIPT_DIR
value: /usr/local/var/keri
- name: KERI_DEMO_SCRIPT_DIR
value: /usr/local/var/keri/demo
- name: KERI_TEMP_DIR
value: /tmp
ports:
{{- range $port := .ports }}
- containerPort: {{ $port }}
Expand All @@ -67,6 +59,8 @@ spec:
volumeMounts:
- mountPath: /usr/local/var/keri
name: keri-data
- mountPath: /configmap
name: witness-configmap
volumes:
- name: keri-data
persistentVolumeClaim:
Expand Down

0 comments on commit 53de1cc

Please sign in to comment.