github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/k8s/examples/clones/clones.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" 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 // Multiple environments of the same type/chart 14 err := environment.New(&environment.Config{ 15 Labels: []string{fmt.Sprintf("envType=%s", pkg.EnvTypeEVM5)}, 16 KeepConnection: true, 17 RemoveOnInterrupt: true, 18 }). 19 AddHelm(ethereum.New(nil)). 20 AddHelm(chainlink.New(0, map[string]interface{}{ 21 "chainlink": map[string]interface{}{ 22 "resources": map[string]interface{}{ 23 "requests": map[string]interface{}{ 24 "cpu": "344m", 25 }, 26 "limits": map[string]interface{}{ 27 "cpu": "344m", 28 }, 29 }, 30 }, 31 "db": map[string]interface{}{ 32 "stateful": "true", 33 "capacity": "1Gi", 34 }, 35 })). 36 AddHelm(chainlink.New(1, 37 map[string]interface{}{ 38 "chainlink": map[string]interface{}{ 39 "resources": map[string]interface{}{ 40 "requests": map[string]interface{}{ 41 "cpu": "577m", 42 }, 43 "limits": map[string]interface{}{ 44 "cpu": "577m", 45 }, 46 }, 47 }, 48 })). 49 Run() 50 if err != nil { 51 panic(err) 52 } 53 }