github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/k8s/examples/simple/env.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/environment"
     5  	"github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/chainlink"
     6  	"github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/ethereum"
     7  	"github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/mockserver"
     8  	mockservercfg "github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/mockserver-cfg"
     9  )
    10  
    11  func main() {
    12  	err := environment.New(&environment.Config{
    13  		NamespacePrefix:   "ztest",
    14  		KeepConnection:    true,
    15  		RemoveOnInterrupt: true,
    16  	}).
    17  		AddHelm(mockservercfg.New(nil)).
    18  		AddHelm(mockserver.New(nil)).
    19  		AddHelm(ethereum.New(nil)).
    20  		AddHelm(chainlink.New(0, map[string]interface{}{
    21  			"replicas": 1,
    22  		})).
    23  		Run()
    24  	if err != nil {
    25  		panic(err)
    26  	}
    27  }