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

Remove builder cache pvc #1225

Conversation

fruttasecca
Copy link
Member

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

  • I have manually tested my changes and I am happy with the result.

Co-authored-by: Yannick Perrenet <26223174+yannickperrenet@users.noreply.github.com>
Comment on lines +82 to +83
// Deprecated and ignored. TODO: remove it?
ConfigDirVolumeSize string `json:"configDirVolumeSize,omitempty"`
Copy link
Contributor

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?

Copy link
Member Author

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 (?).

Copy link
Contributor

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:

  1. Orchest is installed with BuilderCacheDirVolumeSize in the OrchestCluster CR Object.
  2. Made these code changes where BuilderCacheDirVolumeSize was removed
  3. Updated Orchest so that the new orchest-controller is used and new CRD is applied
  4. The OrchestCluster definition actually no longer lists BuilderCacheDirVolumeSize and Orchest continues to run smoothly

Pretty cool 🤔 (so a new CRD doesn't break existing CR Objects if an item is deleted).

Copy link
Member Author

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>
@fruttasecca fruttasecca merged commit 8586f2b into improv/remove-periodic-builder-cache-cleanup-task Sep 1, 2022
@fruttasecca fruttasecca deleted the improv/remove-builder-cache-pvc branch September 1, 2022 07:30
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

2 participants