Skip to content

Commit 7b09f45

Browse files
committed
change entrypoint
1 parent 35f1acf commit 7b09f45

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## this is being mounted from the kubernetes statefulset
66
## the nodepathindex will be extracetd from the statefulset
77
#ordinal index and will be written to this path.
8-
export BUNDLER_NODE_PATH_INDEX=$(cat /etc/podinfo/ordinal_index)
8+
export NODE_CONFIG=$(cat /etc/podinfo/ordinal_index)
99

1010

1111
## this is being mounted from the kubernetes statefulset

install-bundler/bundler/templates/statefulset.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ spec:
4343
- "-c"
4444
- >
4545
echo $(echo $POD_NAME | awk -F '-' '{print $NF}') > /etc/podinfo/ordinal_index;
46-
export POD_INDEX=$(cat /etc/podinfo/ordinal_index)
46+
export POD_INDEX=$(cat /etc/podinfo/ordinal_index);
4747
export NODE_CONFIG='{"relayer": {"nodePathIndex": '$POD_INDEX'}}';
48+
echo $NODE_CONFIG > /etc/podinfo/ordinal_index ;
4849
env:
4950
- name: POD_NAME
5051
valueFrom:

0 commit comments

Comments
 (0)