-
Notifications
You must be signed in to change notification settings - Fork 152
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
Kanister efs backups remove reference to k10 #1328
Kanister efs backups remove reference to k10 #1328
Conversation
@@ -92,7 +90,7 @@ func NewEFSProvider(ctx context.Context, config map[string]string) (blockstorage | |||
|
|||
efsVault, ok := config[awsconfig.ConfigEFSVaultName] | |||
if !ok || efsVault == "" { | |||
efsVault = defaultK10BackupVaultName | |||
return nil, errors.New("EFS vault name is empty") |
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.
Now that you have changed an assumption, I would expect that this would break some unit test in this package ? If not, then that means tests are missing . If so please add them.
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.
In k10, efs_kube_test
will need to be updated. There is no unit test for NewEFSProvider
in kanister
however. Let me look into how best test it since the function actually validates creds with AWS
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.
unit test added with 59fb0e5c253bdccf3a688c46c76bcebd7dec7f0f
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.
LGTM 👍🏼
Co-authored-by: Pavan Navarathna <pavan@kasten.io>
@Mergifyio refresh |
✅ Pull request refreshed |
Change Overview
CreateBackupVaultWrapper
for derivative work.SnapshotsListWLimit
functionPull request type
Please check the type of change your PR introduces:
Test Plan