-
Notifications
You must be signed in to change notification settings - Fork 36
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
WIP Azure Backups #855
WIP Azure Backups #855
Conversation
Signed-off-by: Ian Stanton <[email protected]>
Signed-off-by: Ian Stanton <[email protected]>
if cloud_provider == "azure" { | ||
let write_path = read_msg | ||
.message | ||
.backups_write_path | ||
.clone() | ||
.unwrap_or(format!("{}", read_msg.message.namespace)); | ||
destination_path = format!( | ||
"https://{}.blob.core.windows.net/{}/{}", | ||
azure_storage_account, backup_archive_bucket, write_path | ||
); | ||
} |
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 think this may need a step to provision in Azure the permissions for the workload required for this instance to access the bucket where its backups go
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.
👍 Yep we will need that
/// AzureCredentials is the type for the credentials to be used to upload files to Azure Blob Storage. | ||
#[derive(Serialize, Deserialize, Clone, Debug, Default, JsonSchema)] | ||
pub struct AzureCredentials { |
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.
are these types already present in the cnpg file, or could be kopium imported from the CNPG crd
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.
Yes they are already present. The S3Credentials values (right below this section) are also present there, but it looks like we copied them in and renamed slightly. I followed the same pattern here. Happy to go with either approach
Signed-off-by: Ian Stanton <[email protected]>
Dry run
|
Signed-off-by: Ian Stanton <[email protected]>
Signed-off-by: Ian Stanton <[email protected]>
Signed-off-by: Ian Stanton <[email protected]>
Signed-off-by: Ian Stanton <[email protected]>
Signed-off-by: Ian Stanton <[email protected]>
Closing for now but coming back to this soon :) |
No description provided.