Skip to content

Commit d20761f

Browse files
committed
CR changes
1 parent 7eb688a commit d20761f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

book/src/k8s-test-runner/k8s-test-runner.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ WASP_LOG_LEVEL = "info"
6363
TEST_LOG_LEVEL = "info"
6464
MERCURY_TEST_LOG_LEVEL = "info"
6565
[metadata.labels]
66-
"chain.link/component" = "k8s-test-runner"
66+
"chain.link/component" = "test-runner"
6767
"chain.link/product" = "<your-product-name>"
6868
"chain.link/team" = "<name–of-the-team-you're-running-the-test-for>"
69-
"chain.link/cost-center" = "<sensible-identifier:eg: product-testType-test>"
69+
"chain.link/cost-center" = "test-tooling-<testType>-test"
7070
```
7171

7272
> [NOTE]
@@ -141,10 +141,10 @@ Then:
141141
TEST_LOG_LEVEL = "info"
142142
MERCURY_TEST_LOG_LEVEL = "info"
143143
[metadata.labels]
144-
"chain.link/component" = "k8s-test-runner"
144+
"chain.link/component" = "test-runner"
145145
"chain.link/product" = "data-streamsv0.3"
146146
"chain.link/team" = "Data Streams"
147-
"chain.link/cost-center" = "data-streamsv0.3-load-test"
147+
"chain.link/cost-center" = "test-tooling-load-test"
148148
EOF
149149
150150
./k8s-test-runner-linux-amd64 run -c config.toml

lib/k8s/environment/environment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ func createRequiredChainLinkLabels(product, testType string) (map[string]string,
13171317
return map[string]string{
13181318
"chain.link/product": product,
13191319
"chain.link/team": team,
1320-
"chain.link/cost-center": fmt.Sprintf("%s-%s-test", team, testType),
1320+
"chain.link/cost-center": fmt.Sprintf("test-tooling-%s-test", testType),
13211321
}, nil
13221322
}
13231323

lib/k8s/environment/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (m Chart) GetLabels() map[string]string {
7474
func NewRunner(props *Props) func(root cdk8s.Chart) ConnectedChart {
7575
return func(root cdk8s.Chart) ConnectedChart {
7676
labels := *props.Labels
77-
labels["chain.link/component"] = ptr.Ptr("k8s-test-runner-legacy")
77+
labels["chain.link/component"] = ptr.Ptr("test-runner")
7878
c := &Chart{
7979
Props: props,
8080
}
@@ -97,7 +97,7 @@ func NewRunner(props *Props) func(root cdk8s.Chart) ConnectedChart {
9797
func DataFromRunner(props *Props) func(root cdk8s.Chart) ConnectedChart {
9898
labels := *props.Labels
9999
labels["app"] = ptr.Ptr("runner-data")
100-
labels["chain.link/component"] = ptr.Ptr("k8s-test-runner-data-legacy")
100+
labels["chain.link/component"] = ptr.Ptr("test-runner")
101101
return func(root cdk8s.Chart) ConnectedChart {
102102
c := &Chart{
103103
Props: props,

0 commit comments

Comments
 (0)