From 5735ce8ef324c520f778a9ca275324dbe45979bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Ramon=20Ma=C3=B1es?= Date: Thu, 22 Jun 2023 17:42:39 +0200 Subject: [PATCH] feat: update cms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jose Ramon Mañes --- deployment/base/config/config.yaml | 6 ------ deployment/overlays/local/config/config.yaml | 11 +++-------- .../overlays/robusta-torch-1/config/config.yaml | 11 +++-------- pkg/k8s/commands.go | 7 ++++--- 4 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 deployment/base/config/config.yaml diff --git a/deployment/base/config/config.yaml b/deployment/base/config/config.yaml deleted file mode 100644 index e85d8ad..0000000 --- a/deployment/base/config/config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -mutualPeers: - - peers: - - nodeName: "da-bridge-1-0" - containerName: "da" - - nodeName: "da-full-1-0" - containerName: "da" \ No newline at end of file diff --git a/deployment/overlays/local/config/config.yaml b/deployment/overlays/local/config/config.yaml index fb3370b..e85d8ad 100644 --- a/deployment/overlays/local/config/config.yaml +++ b/deployment/overlays/local/config/config.yaml @@ -1,11 +1,6 @@ mutualPeers: - peers: - - nodeName: "da-bridge-0" + - nodeName: "da-bridge-1-0" containerName: "da" - - nodeName: "da-full-0" - containerName: "da" - - peers: - - nodeName: "test-pod" - containerName: "pod" - - nodeName: "testing-pod-0" - containerName: "test" \ No newline at end of file + - nodeName: "da-full-1-0" + containerName: "da" \ No newline at end of file diff --git a/deployment/overlays/robusta-torch-1/config/config.yaml b/deployment/overlays/robusta-torch-1/config/config.yaml index fb3370b..e85d8ad 100644 --- a/deployment/overlays/robusta-torch-1/config/config.yaml +++ b/deployment/overlays/robusta-torch-1/config/config.yaml @@ -1,11 +1,6 @@ mutualPeers: - peers: - - nodeName: "da-bridge-0" + - nodeName: "da-bridge-1-0" containerName: "da" - - nodeName: "da-full-0" - containerName: "da" - - peers: - - nodeName: "test-pod" - containerName: "pod" - - nodeName: "testing-pod-0" - containerName: "test" \ No newline at end of file + - nodeName: "da-full-1-0" + containerName: "da" \ No newline at end of file diff --git a/pkg/k8s/commands.go b/pkg/k8s/commands.go index c656873..76edabb 100644 --- a/pkg/k8s/commands.go +++ b/pkg/k8s/commands.go @@ -5,8 +5,9 @@ import ( ) var ( - trustedPeerFile = "/tmp/TP-ADDR" - trustedPeers = "/home/celestia/config/" + trustedPeerFile = "/tmp/TP-ADDR" + //trustedPeers = "/home/celestia/config/" + trustedPeers = "/tmp/" trusteedPeerPrefix = "/dns/$(hostname)/tcp/2121/p2p/" ) @@ -55,7 +56,7 @@ fi`, trustedPeerFile, trusteedPeerPrefix) // BulkTrustedPeerCommand generates the peers content in the files func BulkTrustedPeerCommand(tp string) []string { script := fmt.Sprintf(`#!/bin/sh -# create the folder if doesnt exists +# create the folder if doesnt exists mkdir -p "%[3]s" if [ ! -f "%[3]s" ];then