This repository was archived by the owner on Jun 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,15 @@ var ociRegions = map[string]string{
37
37
// AuthConfig holds the configuration required for communicating with the OCI
38
38
// API.
39
39
type AuthConfig struct {
40
- Region string `yaml:"region"`
41
- RegionKey string `yaml:"regionKey"`
42
- TenancyOCID string `yaml:"tenancy"`
43
- CompartmentOCID string `yaml:"compartment"`
44
- UserOCID string `yaml:"user"`
45
- PrivateKey string `yaml:"key"`
46
- Fingerprint string `yaml:"fingerprint"`
47
- VcnOCID string `yaml:"vcn"`
40
+ Region string `yaml:"region"`
41
+ RegionKey string `yaml:"regionKey"`
42
+ TenancyOCID string `yaml:"tenancy"`
43
+ CompartmentOCID string `yaml:"compartment"`
44
+ UserOCID string `yaml:"user"`
45
+ PrivateKey string `yaml:"key"`
46
+ PrivateKeyPassphrase string `yaml:"passphase"`
47
+ Fingerprint string `yaml:"fingerprint"`
48
+ VcnOCID string `yaml:"vcn"`
48
49
}
49
50
50
51
// Config holds the configuration for the OCI flexvolume driver.
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func New(configPath string) (Interface, error) {
85
85
config .Auth .Region ,
86
86
config .Auth .Fingerprint ,
87
87
config .Auth .PrivateKey ,
88
- nil ,
88
+ & config . Auth . PrivateKeyPassphrase ,
89
89
)
90
90
computeClient , err := core .NewComputeClientWithConfigurationProvider (configProvider )
91
91
if err != nil {
You can’t perform that action at this time.
0 commit comments