@@ -30,11 +30,13 @@ type AuthConfig struct {
30
30
TenancyID string `yaml:"tenancy"`
31
31
// CompartmentID is DEPRECIATED and should be set on the top level Config
32
32
// struct.
33
- CompartmentID string `yaml:"compartment"`
34
- UserID string `yaml:"user"`
35
- PrivateKey string `yaml:"key"`
36
- Fingerprint string `yaml:"fingerprint"`
37
- PrivateKeyPassphrase string `yaml:"key_passphrase"` // TODO(apryde): the yaml should be keyPassphrase
33
+ CompartmentID string `yaml:"compartment"`
34
+ UserID string `yaml:"user"`
35
+ PrivateKey string `yaml:"key"`
36
+ Fingerprint string `yaml:"fingerprint"`
37
+ // PrivateKeyPassphrase is DEPRECIATED in favour of Passphrase.
38
+ PrivateKeyPassphrase string `yaml:"key_passphrase"`
39
+ Passphrase string `yaml:"passphrase"`
38
40
}
39
41
40
42
// LoadBalancerConfig holds the configuration options for OCI load balancers.
@@ -72,6 +74,10 @@ func (c *Config) Complete() {
72
74
glog .Warning ("cloud-provider config: \" auth.compartment\" is DEPRECIATED and will be removed in a later release. Please set \" compartment\" ." )
73
75
c .CompartmentID = c .Auth .CompartmentID
74
76
}
77
+ if c .Auth .Passphrase == "" && c .Auth .PrivateKeyPassphrase != "" {
78
+ glog .Warning ("cloud-provider config: \" auth.key_passphrase\" is DEPRECIATED and will be removed in a later release. Please set \" auth.passphrase\" ." )
79
+ c .Auth .Passphrase = c .Auth .PrivateKeyPassphrase
80
+ }
75
81
}
76
82
77
83
// Validate validates the OCI cloud-provider config.
0 commit comments