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
Remove builder cache pvc #1225
Remove builder cache pvc #1225
Conversation
Co-authored-by: Yannick Perrenet <26223174+yannickperrenet@users.noreply.github.com>
// Deprecated and ignored. TODO: remove it? | ||
ConfigDirVolumeSize string `json:"configDirVolumeSize,omitempty"` |
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.
@nhaghighat How would we go about deprecating fields? As far as I understood, deleting a field is not possible in a backwards compatible way?
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've actually removed BuilderCacheDirVolumeSize
and it worked, what ended up happening is that, if the entry existed in the CRD, the entry got removed. I guess the reason is that this way one can update a CRD definition seamlessly (?).
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.
Hmmm so you did something along the lines of:
- Orchest is installed with
BuilderCacheDirVolumeSize
in theOrchestCluster
CR Object. - Made these code changes where
BuilderCacheDirVolumeSize
was removed - Updated Orchest so that the new
orchest-controller
is used and new CRD is applied - The
OrchestCluster
definition actually no longer listsBuilderCacheDirVolumeSize
and Orchest continues to run smoothly
Pretty cool 🤔 (so a new CRD doesn't break existing CR Objects if an item is deleted).
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.
Yeah, that's what I've experienced
Co-authored-by: Yannick Perrenet <26223174+yannickperrenet@users.noreply.github.com>
8586f2b
into
improv/remove-periodic-builder-cache-cleanup-task
Description
Removes the builder cache PVC since it won't be used anymore after the changes to how we build environments.
I've tested both an install and an update, updates have been tested both with a
builder-cache-pvc-size
specified on install (which leads to the entry being in the CRD) and without.Checklist