-
Notifications
You must be signed in to change notification settings - Fork 17
more conditions to terminate integration test earlier #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,11 +23,11 @@ import ( | |
| ) | ||
|
|
||
| // Run starts the main run loop | ||
| func Run(ctx context.Context, namespace string, clientset *kubernetes.Clientset) error { | ||
| func Run(ctx context.Context, namespace string, clientset *kubernetes.Clientset, allowErrors bool) error { | ||
|
|
||
| tails := make(map[string]*Tail) | ||
|
|
||
| err := Watch(ctx, clientset.CoreV1().Pods(namespace), RUNNING, labels.Everything(), func(p *Target) { | ||
| err := Watch(ctx, clientset.CoreV1().Pods(namespace), RUNNING, labels.Everything(), allowErrors, func(p *Target) { | ||
| id := p.GetID() | ||
| if tails[id] != nil { | ||
| return | ||
apesternikov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
@@ -45,7 +45,7 @@ func Run(ctx context.Context, namespace string, clientset *kubernetes.Clientset) | |
| delete(tails, id) | ||
| }) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The error handling strategy within the |
||
| if err != nil { | ||
| return fmt.Errorf("failed to set up watch: %v", err) | ||
| return fmt.Errorf("watch error: %v", err) | ||
| } | ||
|
|
||
| return nil | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.