-
Notifications
You must be signed in to change notification settings - Fork 352
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
fix build-pod strategy on kubernetes #844
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
pkg/controller/build/schedule_pod.go
Outdated
if err := action.ensureServiceAccount(ctx, pod); err != nil { | ||
return nil, errors.Wrap(err, "cannot ensure service account is present") | ||
} | ||
// Otherwise, let's create the build pod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to remove that line has it has moved out of context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} | ||
|
||
pod, err := getBuilderPod(ctx, action.client, build) | ||
if err != nil || pod != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be useful to add a comment that we return and wait until the next delete
event for the build pod to be de-queued.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
d86ae77
to
2052f54
Compare
No description provided.