Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

chore(appengine): Persistent volumes .persistentVolumeReclaimPolicy n…#209

Open
gburnard wants to merge 3 commits into
developfrom
chore/grantb/pv-reclaimpolicy-retain
Open

chore(appengine): Persistent volumes .persistentVolumeReclaimPolicy n…#209
gburnard wants to merge 3 commits into
developfrom
chore/grantb/pv-reclaimpolicy-retain

Conversation

@gburnard

Copy link
Copy Markdown
Contributor

…ow set to Retain

Description

Persistent volumes .persistentVolumeReclaimPolicy now set to Retain, by default.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Technical improvement or removal of technical debt.
  • Minor change: comments, documentation, trivial fixes

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit Tests

Optional:

  • Functional Tests
  • Integration Tests

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@gburnard gburnard requested a review from a team as a code owner February 11, 2021 23:24
@robblovell robblovell assigned robblovell and unassigned robblovell Feb 12, 2021
@robblovell robblovell added the enhancement New feature or request label Feb 12, 2021
Comment thread packages/appengine/src/templates/volumes.ts Outdated
Comment thread packages/appengine/src/templates/volumes.ts Outdated
@nsainaney nsainaney assigned gburnard and unassigned nsainaney Feb 12, 2021
@conneryn

conneryn commented Mar 15, 2021

Copy link
Copy Markdown
Contributor

I'm curious about the use-case behind this change. I assume this is coming from snapshot/volume management requirements, but is this something specific to AppEngine, or do we want this retention policy to be the default for ALL applications and their volumes?

If it's for all applications, could it be better to manage this:
a. in the provisioner/common,
c. by harbourmaster (periodically check for and modify volumes that are not set to Retain), or
b. by c6o system (ex: at install, create a new default custom storage class that applies this retention policy)?

@gburnard

Copy link
Copy Markdown
Contributor Author

Good feedback @conneryn. @robblovell will likely be the best person to respond.

@robblovell

Copy link
Copy Markdown
Contributor

assume this is coming from snapshot/volume management requirements, but is this something specific to AppEngine, or do we want this retention policy to be the default for ALL applications and their volumes?

Hey Connery,

Currently, when a volume is detached, the volume management system sets the volume to 'retain' as part of the process. At one point I had thought that it would assume it was 'retain', but decided after Grant's implementation to default the value to 'retain' to do this. So volume management no longer needs the value to be 'retain'.

However, I think it would be surprising to any app developer if they installed an app and detached the volume that the volume data would disappear. During development, that might be desirable, but during normal operation, I would expect databases and storage volumes to be retained unless explicitly deleted.

Because of this, I think we should keep logic to set volumes to 'retain' for all applications regardless of whether the storage policy for the cloud is something else like 'delete'.

@robblovell

Copy link
Copy Markdown
Contributor

I think this should be just an App Engine feature for now.

robblovell and others added 2 commits March 24, 2021 16:15
Co-authored-by: Narayan Sainaney <narayan@codezero.io>
Co-authored-by: Narayan Sainaney <narayan@codezero.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants