-
Notifications
You must be signed in to change notification settings - Fork 37
/
env.go
30 lines (27 loc) · 791 Bytes
/
env.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
import (
"fmt"
"github.com/rs/zerolog/log"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/environment"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/chainlink"
"github.com/smartcontractkit/chainlink-testing-framework/k8s/pkg/helm/ethereum"
)
func main() {
e := environment.New(&environment.Config{
Labels: []string{fmt.Sprintf("envType=%s", pkg.EnvTypeEVM5)},
}).
AddHelm(ethereum.New(nil)).
AddHelm(chainlink.New(0, nil))
err := e.Run()
if err != nil {
panic(err)
}
// default k8s selector
summ, err := e.ResourcesSummary("app in (chainlink-0, geth)")
if err != nil {
panic(err)
}
log.Warn().Interface("Resources", summ).Send()
e.Shutdown()
}