github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/k8s/examples/modify_cdk8s/env.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/environment" 7 "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/cdk8s/blockscout" 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 ) 11 12 func main() { 13 e := environment.New(&environment.Config{ 14 NamespacePrefix: "modified-env", 15 Labels: []string{fmt.Sprintf("envType=Modified")}, 16 }). 17 AddChart(blockscout.New(&blockscout.Props{ 18 WsURL: "ws://geth:8546", 19 HttpURL: "http://geth:8544", 20 })). 21 AddHelm(ethereum.New(nil)). 22 AddHelm(chainlink.New(0, map[string]interface{}{ 23 "replicas": 1, 24 })) 25 err := e.Run() 26 if err != nil { 27 panic(err) 28 } 29 e.ClearCharts() 30 err = e. 31 AddChart(blockscout.New(&blockscout.Props{ 32 HttpURL: "http://geth:9000", 33 })). 34 AddHelm(ethereum.New(nil)). 35 AddHelm(chainlink.New(0, map[string]interface{}{ 36 "replicas": 1, 37 })). 38 Run() 39 if err != nil { 40 panic(err) 41 } 42 }