github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/k8s/examples/remote-test-runner/env.go (about) 1 package main 2 3 import ( 4 "os" 5 6 "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/config" 7 "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/environment" 8 "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/chainlink" 9 "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/ethereum" 10 "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/mockserver" 11 mockservercfg "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/mockserver-cfg" 12 ) 13 14 func main() { 15 // see REMOTE_RUN.md for tutorial 16 e := environment.New(&environment.Config{ 17 NamespacePrefix: "zmytest", 18 }). 19 AddHelm(mockservercfg.New(nil)). 20 AddHelm(mockserver.New(nil)). 21 AddHelm(ethereum.New(nil)). 22 AddHelm(chainlink.New(0, map[string]interface{}{ 23 "replicas": 1, 24 "chainlink": map[string]interface{}{ 25 "image": map[string]interface{}{ 26 "image": os.Getenv(config.EnvVarCLImage), 27 "version": os.Getenv(config.EnvVarCLTag), 28 }, 29 }, 30 })) 31 if err := e.Run(); err != nil { 32 panic(err) 33 } 34 }