-
Notifications
You must be signed in to change notification settings - Fork 0
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
[controller] Add data wipe #103
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
e2a2c8c
to
e7d08ef
Compare
Co-authored-by: Denis Rebenok <60424108+denmaloyreb@users.noreply.github.com> Signed-off-by: Vasily Oleynikov <archi.kun@gmail.com>
…etion in README_RU Signed-off-by: Denis.Rebenok <denis.rebenok@flant.ru>
Signed-off-by: Denis.Rebenok <denis.rebenok@flant.ru>
…PV section in readme Signed-off-by: Denis.Rebenok <denis.rebenok@flant.ru>
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
if localStorageClass != nil && localStorageClass.Spec.LVM != nil && localStorageClass.Spec.LVM.Thick != nil && localStorageClass.Spec.LVM.Thick.VolumeCleanup != "" { | ||
volumeCleanup = localStorageClass.Spec.LVM.Thick.VolumeCleanup | ||
} | ||
} |
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.
This block has a duplicate below on line 312. Extract a common function.
func GetLSCBeforeLLVDelete(ctx context.Context, cl client.Client, log logger.Logger, volumeID, traceID string) (*slv.LocalStorageClass, error) { | ||
log.Info(fmt.Sprintf("[DeleteVolume][traceID:%s] Fetching PersistentVolume with VolumeId: %s", traceID, volumeID)) | ||
var pv corev1.PersistentVolume | ||
if err := cl.Get(ctx, client.ObjectKey{Name: volumeID}, &pv); err != nil { |
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.
When called from CreateVolume
, how this pv may exist already? I thought it will be created as a result of CreateVolume
.
Description
Added the ability to delete data from volumes upon deletion in the EE edition.
What is the expected result?
Working feature of data wipe while deleting persistentVolumes
Checklist