@@ -30,11 +30,13 @@ type AuthConfig struct {
3030 TenancyID string `yaml:"tenancy"`
3131 // CompartmentID is DEPRECIATED and should be set on the top level Config
3232 // 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"`
3840}
3941
4042// LoadBalancerConfig holds the configuration options for OCI load balancers.
@@ -72,6 +74,10 @@ func (c *Config) Complete() {
7274 glog .Warning ("cloud-provider config: \" auth.compartment\" is DEPRECIATED and will be removed in a later release. Please set \" compartment\" ." )
7375 c .CompartmentID = c .Auth .CompartmentID
7476 }
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+ }
7581}
7682
7783// Validate validates the OCI cloud-provider config.
0 commit comments