-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
CredentialProvider
into its own package (#363)
Supersedes #328. Pre-work for #279. This PR moves the logic in `CredentialProvider`, `MountCredentials`, `awsprofile` package and `tokenFileTender` function (in `driver.go` for driver-level IRSA) into `credentialprovider` package to unify all credential related logic. Addition to that, it makes the following changes to make it workable with the upcoming `PodMounter` for containerization: - Move `credentialprovider.Provide` method call into `Mounter` interface as `SystemdMounter` and `PodMounter` will have different mechanism/paths to provide credentials - Make path to write credentials a parameter of `credentialprovider.{Provide, Cleanup}` as `SystemdMounter` and `PodMounter` will use different paths to write credentials - Move calling `Cleanup` to `Unmount` method of `Mounter` interface --- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --------- Signed-off-by: Burak Varlı <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,941 additions
and
1,579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.