Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WIP: Store storage account credentials #970

Closed
wants to merge 34 commits into from
Closed

WIP: Store storage account credentials #970

wants to merge 34 commits into from

Conversation

WilliamMortlMicrosoft
Copy link
Contributor

@WilliamMortlMicrosoft WilliamMortlMicrosoft commented Apr 21, 2020

closes #913

Upserts the credentials - haven't tested yet

Due to inter-dependencies in storages, this PR touches other resource managers. The code is a bit wonky, but I struggled with finding a better way to do this.

CURRENT STATUS: it should work, but I will test in the AM

giphy

@WilliamMortlMicrosoft WilliamMortlMicrosoft self-assigned this Apr 21, 2020
storageManagers = resourcemanagerstorages.AzureStorageManagers
storageAccountManager := resourcemanagerstorageaccount.New()
storageManagers = resourcemanagerstorages.AzureStorageManagers(secretClient, scheme.Scheme)
storageAccountManager := resourcemanagerstorageaccount.New(secretClient, scheme.Scheme)
blobContainerManager := resourcemanagerblobcontainer.New()
keyVaultManager := resourcemanagerkeyvaults.NewAzureKeyVaultManager(k8sManager.GetScheme())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frodopwns @jananivMS are scheme.Scheme and k8smanager.Scheme interchangeable? I see that some use one, while others use the other... I used scheme.Scheme as it looked more prevalent. Could that be wrong?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: StorageAccount is not storing credentials as a secret
1 participant