Skip to content
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

Merged
merged 1 commit into from
Jul 20, 2019

Conversation

lburgazzoli
Copy link
Contributor

No description provided.

Copy link
Member

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

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
Copy link
Member

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.

Copy link
Contributor Author

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 {
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@lburgazzoli lburgazzoli merged commit d33cc45 into apache:master Jul 20, 2019
@lburgazzoli lburgazzoli deleted the build-pod-strategy branch July 20, 2019 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants