-
Notifications
You must be signed in to change notification settings - Fork 35
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
Making sure that the parameters provided in the metadatalocation getting passed to the nfs provider #144
base: main
Are you sure you want to change the base?
Conversation
}, | ||
}, | ||
}) | ||
if err != nil { | ||
return err | ||
} | ||
log.Infof("88888attributes are:8888 %v", attributes) |
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.
please do change the logs properly.....don't add 888 etc . please do change this all the places
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.
changed
}, | ||
} | ||
ctrl.logger.Infof("paramteres in deleteMetadataBackup:%v", parameters) |
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.
Not needed
}, | ||
}, | ||
}) | ||
if err != nil { | ||
return err | ||
} | ||
log.Infof("attributes in upload are: %v", attributes) |
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.
Follow log msg convention, applicable for other places as well
} | ||
log.Infof("***parameters are******%v", parameters) |
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.
can be deleted
// Validate the Metadatalocation | ||
locationName := backup.Spec.MetadataLocation | ||
backup.Status.ValidationErrors = []string{} | ||
ctrl.logger.Infof("Preparing backup for backup location: %s ", locationName) |
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 is the delete flow, update accordingly
@@ -277,11 +279,23 @@ func (ctrl *controller) deleteMetadataBackup(backup *kahuapi.Backup) error { | |||
return nil | |||
} | |||
|
|||
// Validate the Metadatalocation | |||
locationName := backup.Spec.MetadataLocation | |||
backup.Status.ValidationErrors = []string{} |
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.
Not required to update ValidationErrors
@@ -165,8 +167,11 @@ func (server *nfsServer) Download(request *pb.DownloadRequest, | |||
if fileId == "" { | |||
return status.Error(codes.InvalidArgument, "download file id is empty") | |||
} | |||
attributes := request.GetAttributes() | |||
log.Infof("******attributes in Download are***** %v", attributes) |
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.
Combine this with subsequent log
@@ -226,6 +231,10 @@ func (server *nfsServer) Delete(ctxt context.Context, | |||
log.Info("Delete Called ...") | |||
|
|||
fileId := request.GetFileIdentifier() | |||
|
|||
attributes := request.GetAttributes() | |||
log.Infof("******attributes in Delete are***** %v", attributes) |
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.
Combine this with subsequent log
What type of PR is this?
kind bug fix
What this PR does / why we need it:
The parameters provided in the metadatalocation should be reached to the NFS provider
this PR implements the code required for that
Which issue(s) this PR fixes:
Fixes #
Test Report Added?:
kind TESTED
Test Report:
for the resource:
when trying to restore backup and delete backup parameters are getting passed
Special notes for your reviewer: