Repository: oxheadalpha/tezos-k8s (language: python)

Issue:
make tezos-client command work without passing client dir as param
This is very neat because I can open a shell into the node or baker and
type `tezos-client list known addresses` and it just works.

Q: why a symink instead of moving the actual dir to
/home/tezos/.tezos-client ?

A: the potential for breakage is high if we move the dir. This makes the
startup script a bit longer but there is virtually no risk of breakage.


Discussion / hints:

Fix patch:
diff --git a/charts/tezos/scripts/remote-signer.sh b/charts/tezos/scripts/remote-signer.sh
index 20335dbff..3104c11a9 100644
--- a/charts/tezos/scripts/remote-signer.sh
+++ b/charts/tezos/scripts/remote-signer.sh
@@ -8,4 +8,7 @@ NODE_DATA_DIR="$TEZ_VAR/node/data"
 
 CMD="$TEZ_BIN/tezos-signer -d $CLIENT_DIR launch http signer --magic-bytes 0x11,0x12,0x13 --check-high-watermark -a 0.0.0.0 -p 6732"
 
+# ensure we can run tezos-signer commands without specifying client dir
+ln -s /var/tezos/client /home/tezos/.tezos-signer
+
 exec $CMD


Test patch:
diff --git a/test/charts/private-chain.expect.yaml b/test/charts/private-chain.expect.yaml
index 388ef04f4..767ac54bc 100644
--- a/test/charts/private-chain.expect.yaml
+++ b/test/charts/private-chain.expect.yaml
@@ -1202,6 +1202,9 @@ spec:
             
             CMD="$TEZ_BIN/tezos-signer -d $CLIENT_DIR launch http signer --magic-bytes 0x11,0x12,0x13 --check-high-watermark -a 0.0.0.0 -p 6732"
             
+            # ensure we can run tezos-signer commands without specifying client dir
+            ln -s /var/tezos/client /home/tezos/.tezos-signer
+            
             exec $CMD
             
       initContainers: