Skip to content

Commit 4469d3b

Browse files
committed
auto-forward team name variable
1 parent bd45ccb commit 4469d3b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/k8s/environment/environment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ func GetRequiredChainLinkWorkloadLabels(product, testType string) (map[string]st
12061206
func createRequiredChainLinkLabels(product, testType string) (map[string]string, error) {
12071207
team := os.Getenv(config.EnvVarTeam)
12081208
if team == "" {
1209-
return nil, fmt.Errorf("missing team environment variable, please set %s to your team name or if you are seeing this in CI please either add a new input with team name or hardcode it if this jobs is only run by a single team", config.EnvVarUser)
1209+
return nil, fmt.Errorf("missing team environment variable, please set %s to your team name or if you are seeing this in CI please either add a new input with team name or hardcode it if this jobs is only run by a single team", config.EnvVarTeam)
12101210
}
12111211

12121212
return map[string]string{

lib/k8s/environment/runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ func jobEnvVars(props *Props) *[]*k8s.EnvVar {
400400
config.EnvVarSlackKey,
401401
config.EnvVarSlackUser,
402402
config.EnvVarUser,
403+
config.EnvVarTeam,
403404
config.EnvVarNodeSelector,
404405
config.EnvVarDBURL,
405406
config.EnvVarInternalDockerRepo,

0 commit comments

Comments
 (0)