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

     1  package main
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/environment"
     7  	"github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/examples/deployment_part"
     8  	"github.com/smartcontractkit/chainlink-testing-framework/libs/k8s/pkg/helm/chainlink"
     9  )
    10  
    11  func main() {
    12  	e := environment.New(&environment.Config{
    13  		NamespacePrefix:   "adding-new-deployment-part",
    14  		TTL:               3 * time.Hour,
    15  		KeepConnection:    true,
    16  		RemoveOnInterrupt: true,
    17  	}).
    18  		AddHelm(deployment_part.New(nil)).
    19  		AddHelm(chainlink.New(0, map[string]interface{}{
    20  			"replicas": 5,
    21  			"env": map[string]interface{}{
    22  				"SOLANA_ENABLED":              "true",
    23  				"EVM_ENABLED":                 "false",
    24  				"EVM_RPC_ENABLED":             "false",
    25  				"CHAINLINK_DEV":               "false",
    26  				"FEATURE_OFFCHAIN_REPORTING2": "true",
    27  				"feature_offchain_reporting":  "false",
    28  				"P2P_NETWORKING_STACK":        "V2",
    29  				"P2PV2_LISTEN_ADDRESSES":      "0.0.0.0:6690",
    30  				"P2PV2_DELTA_DIAL":            "5s",
    31  				"P2PV2_DELTA_RECONCILE":       "5s",
    32  				"p2p_listen_port":             "0",
    33  			},
    34  		}))
    35  	if err := e.Run(); err != nil {
    36  		panic(err)
    37  	}
    38  }