diff --git a/charts/chainlink-cluster/dashboard/cmd/deploy.go b/charts/chainlink-cluster/dashboard/cmd/deploy.go index ed901ea878b..883c1939a6b 100644 --- a/charts/chainlink-cluster/dashboard/cmd/deploy.go +++ b/charts/chainlink-cluster/dashboard/cmd/deploy.go @@ -2,9 +2,9 @@ package main import ( "github.com/K-Phoen/grabana/dashboard" - lib "github.com/smartcontractkit/chainlink/dashboard-lib/lib" - core_don "github.com/smartcontractkit/chainlink/dashboard-lib/lib/core-don" - k8spods "github.com/smartcontractkit/chainlink/dashboard-lib/lib/k8s-pods" + lib "github.com/smartcontractkit/chainlink/dashboard-lib" + core_don "github.com/smartcontractkit/chainlink/dashboard-lib/core-don" + k8spods "github.com/smartcontractkit/chainlink/dashboard-lib/k8s-pods" waspdb "github.com/smartcontractkit/wasp/dashboard" ) diff --git a/charts/chainlink-cluster/go.mod b/charts/chainlink-cluster/go.mod index c67fdde0a66..4a8dd43fd5f 100644 --- a/charts/chainlink-cluster/go.mod +++ b/charts/chainlink-cluster/go.mod @@ -4,7 +4,7 @@ go 1.21.7 require ( github.com/K-Phoen/grabana v0.22.1 - github.com/smartcontractkit/chainlink/dashboard-lib v0.22.1 + github.com/smartcontractkit/chainlink/dashboard-lib v0.0.0-00010101000000-000000000000 github.com/smartcontractkit/wasp v0.4.6 ) @@ -34,5 +34,5 @@ replace ( github.com/mwitkow/grpc-proxy => github.com/smartcontractkit/grpc-proxy v0.0.0-20230731113816-f1be6620749f github.com/sercand/kuberesolver/v4 => github.com/sercand/kuberesolver/v5 v5.1.1 - github.com/smartcontractkit/chainlink/dashboard-lib => ../../dashboard + github.com/smartcontractkit/chainlink/dashboard-lib => ../../dashboard-lib ) diff --git a/dashboard/README.md b/dashboard-lib/README.md similarity index 93% rename from dashboard/README.md rename to dashboard-lib/README.md index b77d68df73d..44fd655c72a 100644 --- a/dashboard/README.md +++ b/dashboard-lib/README.md @@ -21,4 +21,4 @@ Components should be imported from this module, see [example](../charts/chainlin ## How to convert from JSON using Grabana codegen utility 1. Download Grabana binary [here](https://github.com/K-Phoen/grabana/releases) 2. ./bin/grabana convert-go -i dashboard.json > lib/my_new_component/rows.go -3. Create a [component](lib/k8s-pods/component.go) \ No newline at end of file +3. Create a [component](k8s-pods/component.go) \ No newline at end of file diff --git a/dashboard/lib/ccip-load-test-view/component.go b/dashboard-lib/ccip-load-test-view/component.go similarity index 100% rename from dashboard/lib/ccip-load-test-view/component.go rename to dashboard-lib/ccip-load-test-view/component.go diff --git a/dashboard/lib/config.go b/dashboard-lib/config.go similarity index 98% rename from dashboard/lib/config.go rename to dashboard-lib/config.go index eae6e956fc7..7d2db0878d8 100644 --- a/dashboard/lib/config.go +++ b/dashboard-lib/config.go @@ -1,4 +1,4 @@ -package dashboardlib +package dashboard_lib import "os" diff --git a/dashboard/lib/core-don/component.go b/dashboard-lib/core-don/component.go similarity index 100% rename from dashboard/lib/core-don/component.go rename to dashboard-lib/core-don/component.go diff --git a/dashboard/lib/core-don/platform.go b/dashboard-lib/core-don/platform.go similarity index 100% rename from dashboard/lib/core-don/platform.go rename to dashboard-lib/core-don/platform.go diff --git a/dashboard/lib/core-ocrv2-ccip/component.go b/dashboard-lib/core-ocrv2-ccip/component.go similarity index 100% rename from dashboard/lib/core-ocrv2-ccip/component.go rename to dashboard-lib/core-ocrv2-ccip/component.go diff --git a/dashboard/lib/dashboard.go b/dashboard-lib/dashboard.go similarity index 99% rename from dashboard/lib/dashboard.go rename to dashboard-lib/dashboard.go index 3343530a835..73dde5704f0 100644 --- a/dashboard/lib/dashboard.go +++ b/dashboard-lib/dashboard.go @@ -1,4 +1,4 @@ -package dashboardlib +package dashboard_lib import ( "context" diff --git a/dashboard/go.mod b/dashboard-lib/go.mod similarity index 91% rename from dashboard/go.mod rename to dashboard-lib/go.mod index 423103005da..eef60129771 100644 --- a/dashboard/go.mod +++ b/dashboard-lib/go.mod @@ -1,4 +1,4 @@ -module github.com/smartcontractkit/chainlink/v2/dashboard-lib +module github.com/smartcontractkit/chainlink/dashboard-lib go 1.21.7 diff --git a/dashboard/go.sum b/dashboard-lib/go.sum similarity index 100% rename from dashboard/go.sum rename to dashboard-lib/go.sum diff --git a/dashboard/lib/k8s-pods/component.go b/dashboard-lib/k8s-pods/component.go similarity index 100% rename from dashboard/lib/k8s-pods/component.go rename to dashboard-lib/k8s-pods/component.go diff --git a/dashboard/lib/log.go b/dashboard-lib/log.go similarity index 94% rename from dashboard/lib/log.go rename to dashboard-lib/log.go index fe30efc7f59..edb4607a0ba 100644 --- a/dashboard/lib/log.go +++ b/dashboard-lib/log.go @@ -1,4 +1,4 @@ -package dashboardlib +package dashboard_lib import ( "os"