11# Set helm args based on only file to show
22HELM_NAME = kubeshuttle
3+ HELM_CHART = devnet
34ifneq ($(FILE ) ,)
45HELM_ARGS += --show-only $(FILE )
56endif
67
7- KEYS_CONFIG = configs/keys.json
8+ KEYS_CONFIG = charts/ $( HELM_CHART ) / configs/keys.json
89
910# ##############################################################################
1011# ## Helm commands ###
@@ -13,19 +14,19 @@ KEYS_CONFIG = configs/keys.json
1314all : delete install
1415
1516debug :
16- helm template --dry-run --debug --generate-name . $(HELM_ARGS )
17+ helm template --dry-run --debug --generate-name ./charts/ $( HELM_CHART ) $(HELM_ARGS )
1718
1819install :
19- helm install --replace --debug $(HELM_NAME ) . $(HELM_ARGS )
20+ helm install --replace --debug $(HELM_NAME ) ./charts/ $( HELM_CHART ) $(HELM_ARGS )
2021
2122upgrade :
22- helm upgrade --debug $(HELM_NAME ) . $(HELM_ARGS )
23+ helm upgrade --debug $(HELM_NAME ) ./charts/ $( HELM_CHART ) $(HELM_ARGS )
2324
2425delete :
2526 helm delete --debug $(HELM_NAME )
2627
2728# ##############################################################################
28- # ## Local Setup ###
29+ # ## Local Kind Setup ###
2930# ##############################################################################
3031
3132KIND_CLUSTER =kubeshuttle
@@ -99,19 +100,21 @@ add-n-mnemonic:
99100# ## Port forward ###
100101# ##############################################################################
101102
102- VALUES_FILE = values.yaml
103+ VALUES_FILE = "charts/ $( HELM_CHART ) / values.yaml"
103104
104105.PHONY : port-forward port-forward-all
105106.port-forward :
106107 kubectl port-forward pods/$(chain ) -genesis-0 $(localrpc ) :26657 &
107108 kubectl port-forward pods/$(chain ) -genesis-0 $(localrest ) :1317 &
108109
109110port-forward-all :
111+ echo " Port forwarding all chains to localhost"
110112 for chain in $$ (yq -r " .chains | keys[]" $( VALUES_FILE) ); do \
111113 $(MAKE) .port-forward chain=$$chain \
112114 localrpc=$$(yq -r ".chains[\"$$chain\"].localPorts.rpc" $(VALUES_FILE)) \
113115 localrest=$$(yq -r ".chains[\"$$chain\"].localPorts.rest" $(VALUES_FILE)); \
114116 done
117+ echo "Port forwarding explorer to localhost"
115118 kubectl port-forward service/explorer 8080:8080 &
116119
117120.PHONY : stop-forward
0 commit comments