Skip to content

Commit

Permalink
Use secret key value ref for azure creds
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <[email protected]>
  • Loading branch information
ianstanton committed Jun 27, 2024
1 parent 6b8afd7 commit 2448a72
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions conductor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use conductor::{
};

use controller::apis::coredb_types::{
AzureCredentials, AzureCredentialsStorageAccount, Backup, CoreDBSpec, S3Credentials,
ServiceAccountTemplate, VolumeSnapshot,
AzureCredentials, AzureCredentialsStorageAccount, AzureCredentialsStorageKey, Backup,
CoreDBSpec, S3Credentials, ServiceAccountTemplate, VolumeSnapshot,
};
use k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
use kube::Client;
Expand Down Expand Up @@ -762,10 +762,13 @@ async fn init_cloud_perms(
connection_string: None,
inherit_from_azure_ad: None,
storage_account: Some(AzureCredentialsStorageAccount {
key: azure_storage_account_key.clone(),
name: azure_storage_account.clone(),
key: "AZURE_STORAGE_ACCOUNT".to_string(),
name: "azure-creds".to_string(),
}),
storage_key: Some(AzureCredentialsStorageKey {
key: "AZURE_STORAGE_KEY".to_string(),
name: "azure-creds".to_string(),
}),
storage_key: None,
storage_sas_token: None,
})
} else {
Expand Down

0 comments on commit 2448a72

Please sign in to comment.