-
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
Implement Azure blob replication logic #7308
Conversation
713a61f
to
794cf0f
Compare
06f4534
to
1b743d5
Compare
2b90866
to
9d2429f
Compare
b1ffe70
to
6acd7b8
Compare
62c6dda
to
3398da3
Compare
f47034f
to
65c0887
Compare
@@ -799,7 +822,11 @@ async function update_external_connection(req) { | |||
}, | |||
$set: { | |||
"sync_credentials_cache.$.access_key": identity, | |||
"sync_credentials_cache.$.secret_key": encrypted_secret | |||
"sync_credentials_cache.$.secret_key": encrypted_secret, | |||
"sync_credentials_cache.$.azure_log_access_keys.azure_tenant_id": req.rpc_params.azure_log_access_keys.azure_tenant_id || undefined, |
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 you please check the behaviour when these fields are set to undefined
? Actually I think I noticed a fluke with our encode_json
which iterates over all the keys and captures the keys even if the values are set to undefined
. I am not sure if that applies here.
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.
The update
logic will be implemented in another PR, so I'll address it there :)
properties: { | ||
logs_bucket: { type: 'string' }, | ||
prefix: { type: 'string' }, | ||
endpoint_type: { $ref: '#/definitions/log_replication_endpoint_type' }, |
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.
why do we need endpoint type here if this is AWS for sure?
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.
I suppose you need to take the endpoint_type outside to the outer layer of this object
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.
I added it as an optional parameter in case users will want to use it for better clarity, and for consistency with the Azure option - but it serves no functional purpose
7039d1d
to
2f9aabd
Compare
165708d
to
9be1d13
Compare
Signed-off-by: Ben <belimele@redhat.com>
8de4926
to
626c88e
Compare
Explain the changes
ignore_fn
lambda function with theignore_deletions
flag, and moved the handling to the log parsersTODO