@@ -33,11 +33,11 @@ async function setupAWSBuckets(k8s: KubernetesClient, options: BucketsOptions):
3333 const awsSecret = await k8s . coreApi . readNamespacedSecret ( 'aws-mock-credentials' , options . namespace ) ;
3434 const awsConfig = {
3535 credentials : {
36- accessKeyId : Buffer . from ( awsSecret . body . data ! [ 'aws-access-key-id' ] , 'base64' ) . toString ( ) ,
37- secretAccessKey : Buffer . from ( awsSecret . body . data ! [ 'aws-secret-access-key' ] , 'base64' ) . toString ( )
38- } ,
39- region : Buffer . from ( awsSecret . body . data ! [ 'aws-region' ] , 'base64' ) . toString ( ) ,
40- endpoint : Buffer . from ( awsSecret . body . data ! [ 'aws-endpoint' ] , 'base64' ) . toString ( ) ,
36+ accessKeyId : Buffer . from ( awsSecret . data ! [ 'aws-access-key-id' ] , 'base64' ) . toString ( ) ,
37+ secretAccessKey : Buffer . from ( awsSecret . data ! [ 'aws-secret-access-key' ] , 'base64' ) . toString ( )
38+ } ,
39+ region : Buffer . from ( awsSecret . data ! [ 'aws-region' ] , 'base64' ) . toString ( ) ,
40+ endpoint : Buffer . from ( awsSecret . data ! [ 'aws-endpoint' ] , 'base64' ) . toString ( ) ,
4141 forcePathStyle : true
4242 } ;
4343
@@ -105,10 +105,10 @@ async function setupAzureBuckets(k8s: KubernetesClient, options: BucketsOptions)
105105
106106 // Get Azure credentials from mock service
107107 const azureSecret = await k8s . coreApi . readNamespacedSecret ( 'azure-mock-credentials' , options . namespace ) ;
108- const accountName = Buffer . from ( azureSecret . body . data ! [ 'account-name' ] , 'base64' ) . toString ( ) ;
109- const accountKey = Buffer . from ( azureSecret . body . data ! [ 'account-key' ] , 'base64' ) . toString ( ) ;
110- const blobEndpoint = Buffer . from ( azureSecret . body . data ! [ 'blob-endpoint' ] , 'base64' ) . toString ( ) ;
111- const queueEndpoint = Buffer . from ( azureSecret . body . data ! [ 'queue-endpoint' ] , 'base64' ) . toString ( ) ;
108+ const accountName = Buffer . from ( azureSecret . data ! [ 'account-name' ] , 'base64' ) . toString ( ) ;
109+ const accountKey = Buffer . from ( azureSecret . data ! [ 'account-key' ] , 'base64' ) . toString ( ) ;
110+ const blobEndpoint = Buffer . from ( azureSecret . data ! [ 'blob-endpoint' ] , 'base64' ) . toString ( ) ;
111+ const queueEndpoint = Buffer . from ( azureSecret . data ! [ 'queue-endpoint' ] , 'base64' ) . toString ( ) ;
112112
113113 const blobSharedKeyCredential = new BlobStorageSharedKeyCredential ( accountName , accountKey ) ;
114114 const queueSharedKeyCredential = new StorageSharedKeyCredential ( accountName , accountKey ) ;
0 commit comments