-
Notifications
You must be signed in to change notification settings - Fork 60
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
CON-3010 Changes for resize the filesystem for creating clone from sn… #424
base: master
Are you sure you want to change the base?
Conversation
PRs need to be signed to be reviewed and approved. |
…apshot Signed-off-by: jyotsna-lothe <[email protected]>
…VC claim Signed-off-by: jyotsna-lothe <[email protected]>
…le system Signed-off-by: jyotsna-lothe <[email protected]>
Signed-off-by: jyotsna-lothe <[email protected]>
Signed-off-by: jyotsna-lothe <[email protected]>
|
||
// If the DataSource is a VolumeSnapshot | ||
if pvc.Spec.DataSource.Kind == "VolumeSnapshot" { | ||
log.Infof(" Source Kind: VolumeSnapshot\n VolumeSnapshot Name: %s\n", pvc.Spec.DataSource.Name) |
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.
nit: is the newlines in between intentional? Might not be needed, since each log will be in a newline by default.
return nil, | ||
status.Error(codes.InvalidArgument, | ||
fmt.Sprintf("Requested clone size %d is not equal to the parent volume size %d", size, existingParentVolume.Size)) | ||
status.Error(codes.Internal, |
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.
Wouldnt it be better to leave the error code as InvalidArgument ? It is not an internal error, since the requested size is wrong, better to return InvalidArgument.
@@ -1,4 +1,4 @@ | |||
// Copyright 2019 Hewlett Packard Enterprise Development LP | |||
// Copyright 2019,2024 Hewlett Packard Enterprise Development LP |
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.
nit:2025, please check other files, some have 2024.
@lothejyotsna , please also rebase to the latest master. |
PR for CON 3010 - resize the filesystem when clone created from volumesnapshot is of size > parent volume