Skip to content

Commit

Permalink
fix: json path on p2p service query (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjorge-graphops authored Aug 14, 2024
1 parent 5dfd4f5 commit f912a75
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ spec:
- -c
- |
set -ex;
export EXTERNAL_PORT_WAKU=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.spec.ports[?(@.name=="waku-port")].nodePort}');
export EXTERNAL_PORT_DISCV5=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.spec.ports[?(@.name=="discv5-port")].nodePort}');
export EXTERNAL_PORT_WAKU=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.items[0].spec.ports[?(@.name=="waku-port")].nodePort}');
export EXTERNAL_PORT_DISCV5=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.items[0].spec.ports[?(@.name=="discv5-port")].nodePort}');
export EXTERNAL_IP=$(kubectl get nodes "${NODE_NAME}" -o jsonpath='{.status.addresses[?(@.type=="ExternalIP")].address}');
until [ -n "$EXTERNAL_IP" ]; do
for SITE in $SITES; do
Expand Down
2 changes: 1 addition & 1 deletion charts/nethermind/templates/nethermind/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ spec:
- -c
- |
set -ex;
export EXTERNAL_PORT=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o jsonpath='{.spec.ports[0].nodePort}');
export EXTERNAL_PORT=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o jsonpath='{.items[0].spec.ports[0].nodePort}');
export EXTERNAL_IP=$(kubectl get nodes "${NODE_NAME}" -o jsonpath='{.status.addresses[?(@.type=="ExternalIP")].address}');
until [ -n "$EXTERNAL_IP" ]; do
for SITE in $SITES; do
Expand Down
2 changes: 1 addition & 1 deletion charts/nimbus/templates/nimbus/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:
- -c
- |
set -ex;
export EXTERNAL_PORT=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o jsonpath='{.spec.ports[0].nodePort}');
export EXTERNAL_PORT=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o jsonpath='{.items[0].spec.ports[0].nodePort}');
export EXTERNAL_IP=$(kubectl get nodes "${NODE_NAME}" -o jsonpath='{.status.addresses[?(@.type=="ExternalIP")].address}');
until [ -n "$EXTERNAL_IP" ]; do
for SITE in $SITES; do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ spec:
- -c
- |
set -ex;
export EXTERNAL_PORT_WAKU=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.spec.ports[?(@.name=="waku-port")].nodePort}');
export EXTERNAL_PORT_DISCV5=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.spec.ports[?(@.name=="discv5-port")].nodePort}');
export EXTERNAL_PORT_WAKU=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.items[0].spec.ports[?(@.name=="waku-port")].nodePort}');
export EXTERNAL_PORT_DISCV5=$(kubectl get services -l "pod in (${POD_NAME}), type in (p2p)" -o=jsonpath='{.items[0].spec.ports[?(@.name=="discv5-port")].nodePort}');
export EXTERNAL_IP=$(kubectl get nodes "${NODE_NAME}" -o jsonpath='{.status.addresses[?(@.type=="ExternalIP")].address}');
until [ -n "$EXTERNAL_IP" ]; do
for SITE in $SITES; do
Expand Down

0 comments on commit f912a75

Please sign in to comment.