Skip to content

Commit

Permalink
Allow namespace customisation for tekton-pipeline agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ccojocar committed Apr 16, 2019
1 parent de5a68b commit f466d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prow/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1144,9 +1144,9 @@ func validateAgent(v JobBase, podNamespace string) error {
return fmt.Errorf("error_on_eviction only applies to agent: %s (found %q)", k, agent)
case v.Namespace == nil || *v.Namespace == "":
return fmt.Errorf("failed to default namespace")
case *v.Namespace != podNamespace && agent != b:
case *v.Namespace != podNamespace && agent != b && agent != p:
// TODO(fejta): update plank to allow this (depends on client change)
return fmt.Errorf("namespace customization requires agent: %s (found %q)", b, agent)
return fmt.Errorf("namespace customization requires agent: %s or %s (found %q)", b, p, agent)
}
return nil
}
Expand Down

0 comments on commit f466d32

Please sign in to comment.