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

handle non-resizable storage classes for build cache #2661

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Conversation

julian-hj
Copy link
Member

Is there a related GitHub Issue?

#2634

What is this change about?

We set build cache size on kpack Images, but if we already have an Image, and we try to change the buildCacheMB setting, redeploy Korifi, and then repush an app, the operation will fail if the storage class doesn't support resize, because kpack will try to modify the persistent disk. This change checks the storage class and deletes the Image if resizing isn't supported.

Does this PR introduce a breaking change?

No

Acceptance Steps

#2634

Tag your pair, your PM, and/or team

@davewalter

- We now set build cache size on kpack Images, but if we already have an
  Image, and we try to change the size setting and repush the app, the
  operation will fail if the storage class doesn't support resize. This
  change checks the storage class and deletes the image if resizing
  isn't supported.

  #2634

Co-authored-by: Julian Hjortshoj <[email protected]>
@davewalter davewalter enabled auto-merge (rebase) July 6, 2023 01:32
@davewalter davewalter merged commit f109eb9 into main Jul 6, 2023
6 checks passed
@davewalter davewalter deleted the issues/2634 branch July 6, 2023 01: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.

2 participants