Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BulatSaif committed Jan 17, 2024
1 parent 80913c6 commit a073d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/node/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ spec:
{{- end }}
{{- end }}
---
{{- if and $.Values.node.perNodeServices.relayP2pService.enabled (include "node.hasRelaychain" .) }}
{{- if and $.Values.node.perNodeServices.relayP2pService.enabled (include "node.hasRelaychain" $) }}
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ spec:
echo "Retrieved Kubernetes service node port from {{ $fullname }}-${POD_INDEX}-relay-chain-p2p"
echo "Saved ${RELAY_CHAIN_P2P_PORT} to /chain-data/relay_chain_p2p_port"
{{- end }}
{{- if and .Values.node.perNodeServices.paraP2pService.enabled (eq .Values.node.perNodeServices.paraP2pService.type "NodePort") }}
{{- if and .Values.node.isParachain .Values.node.perNodeServices.paraP2pService.enabled (eq .Values.node.perNodeServices.paraP2pService.type "NodePort") }}
PARA_CHAIN_P2P_PORT="$(kubectl --namespace {{ .Release.Namespace }} get service {{ $fullname }}-${POD_INDEX}-para-chain-p2p -o jsonpath='{.spec.ports[0].nodePort}')"
echo "${PARA_CHAIN_P2P_PORT}" > /chain-data/para_chain_p2p_port
echo "Retrieved Kubernetes service node port from {{ $fullname }}-${POD_INDEX}-para-chain-p2p, saved ${PARA_CHAIN_P2P_PORT} to /chain-data/para_chain_p2p_port"
Expand Down

0 comments on commit a073d8a

Please sign in to comment.