-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add Region to Connection Schemas + Use Region in Check Connection #7433
Conversation
4beff0f
to
857b40d
Compare
97901b8
to
2b86f59
Compare
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.
Looks good, just one question - is there a reason that the region
attribute is added to the connection only in update_external_connection
and not in add_external_connection
as well?
@Neon-White, Would you please mark the line where you think I didn't add the region attribute? I'll try to explain although I'm not sure what you meant exactly: noobaa-core/src/api/account_api.js Lines 415 to 417 in 7ffb2e6
But in the function
and eventually, the info that would contain the region will be saved in the DB (we add the region to info and it will be saved under sync_credentials_cache ):noobaa-core/src/server/system_services/account_server.js Lines 752 to 759 in 7ffb2e6
|
Thank you for the thorough explanation! |
use region in check connection pass region to update external connection Signed-off-by: shirady <57721533+shirady@users.noreply.github.com>
2b86f59
to
334a4ff
Compare
Explain the changes
check_aws_connection
.Issues: Fixed #xxx / Gap #xxx
Testing Instructions:
Need to build with operator change noobaa/noobaa-operator#1188.
Note:
nb
is an alias that runs the local operator frombuild/_output/bin
(alias created bydevenv
).nb namespacestore create aws-s3 <namespace-store-name> --region=<target-bucket-region>
.nb backingstore create aws-s3 <backingstore-store-name> --region=<target-bucket-region>
.check_external_connection
,check_aws_connection
and see that the region passed.Note: test on buckets in the regions 'us-east-1' and 'us-west-1'.