Skip to content

feat: add support for local PVC cleanup during upgrade and rolling restart [KO-427] #374

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

abhishekdwivedi3060
Copy link
Collaborator

  • Added support for local PVC cleanup during upgrade and rolling restart
  • Added test-cases

@abhishekdwivedi3060 abhishekdwivedi3060 force-pushed the feature/KO-427-local-pvc-cleanup branch from 108b738 to 0d87a9e Compare May 23, 2025 11:09
tanmayja
tanmayja previously approved these changes May 29, 2025
sud82
sud82 previously approved these changes Jun 16, 2025
@@ -217,6 +217,12 @@ func getAerospikeStorageList(storage *asdbv1.AerospikeStorageSpec, onlyPV bool)
func validateStorage(
storage *asdbv1.AerospikeStorageSpec, podSpec *asdbv1.AerospikePodSpec,
) error {
if asdbv1.GetBool(storage.DeleteLocalStorageOnRestart) && len(storage.LocalStorageClasses) == 0 {
return fmt.Errorf(
"deleteLocalStorageOnRestart is set to true, but no local storage classes are defined",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace local storage classes with localStorageClasses
-> localStorageClasses cannot be empty if deleteLocalStorageOnRestart is set.

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.

3 participants