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

Trigger a kpack build if requested buildpack changes #2515

Merged
merged 1 commit into from
May 11, 2023

Conversation

danail-branekov
Copy link
Member

Is there a related GitHub Issue?

#2474

What is this change about?

Kpack would not trigger a build if the builder in the kpack image changes and latest build had failed (e.g. push with buildpack A that fails and then try to push with buildpack B) - see buildpacks-community/kpack#1198

In order to work around this kpack limitation we annotate the latest build with image.kpack.io/additionalBuildNeeded annotation that forces kpack into creating a new build thus picking up the builder specified in the kpack image.

Does this PR introduce a breaking change?

No

Acceptance Steps

  1. cf push dorifi -p ~/workspace/korifi/tests/e2e/assets/golang -b paketo-buildpacks/java -> See it failing

  2. cf push dorifi -p ~/workspace/korifi/tests/e2e/assets/golang -b paketo-buildpacks/go -> see it starts a new build and eventually succeed

Tag your pair, your PM, and/or team

@kieron-dev

Kpack would not trigger a build if the builder in the kpack image
changes and latest build had failed (e.g. push with buildpack A that
fails and then try to push with buildpack B) - see
buildpacks-community/kpack#1198

In order to work around this kpack limitation we annotate the latest
build with `image.kpack.io/additionalBuildNeeded` annotation that forces
kpack into creating a new build thus picking up the builder specified in
the kpack image.

Co-authored-by: Kieron Browne <kbrowne@vmware.com>
@kieron-dev kieron-dev force-pushed the issues/2474-recover-from-skipped-builds branch from 9cfcebb to 1f4367f Compare May 11, 2023 16:01
@kieron-dev kieron-dev merged commit bd5698a into main May 11, 2023
6 checks passed
@kieron-dev kieron-dev deleted the issues/2474-recover-from-skipped-builds branch May 11, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants