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

Disable rebuilds for stack, git, build pack changes using image resource #1629

Open
doddisam opened this issue May 30, 2024 · 4 comments
Open

Comments

@doddisam
Copy link

Hi Team,

Is there a way to disable disable image rebuilds for stack, git, build pack changes using image resource in kpack?

@chenbh
Copy link
Contributor

chenbh commented May 30, 2024

I'm not sure why you would use the Image resource then, for one-off builds you should use the Build resource directly.

@doddisam
Copy link
Author

doddisam commented May 31, 2024

We want our users to use builder resource not builder.image reference as we manage kpack builder.
so we have a use case to check if we can restrict automatic rebuilds for stack, git and build pack changes using image resource.

Also even if we use "builder.image" in build resource, can we use k8's service bindings for dependencies ?
The reason i am asking this is we have a air gapped env and currently we are downloading dependencies to our artifactory and creating a secret for all mappings. is there a way for us to provide those dependency mappings to build resource ?

I also explored to mount secret as volume using build resource, looks like that is also not supported.

@doddisam
Copy link
Author

Can anybody help on above ?

@tomkennedy513
Copy link
Collaborator

Build has its own mechanism for referencing service bindings.

There is a spec.services field that you can use like this

services:
- name: settings-xml
  kind: Secret

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

No branches or pull requests

3 participants