Skip to content

Commit c7e2d76

Browse files
committed
s/word/phrase/g
1 parent 5253ef4 commit c7e2d76

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

manifests/cloud-provider-example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ auth:
88
<snip>
99
-----END RSA PRIVATE KEY-----
1010
# Omit if there is not a password for the key
11-
key_password: supersecretpassword
11+
key_passphrase: supersecretpassword
1212
fingerprint: 8c:bf:17:7b:5f:e0:7d:13:75:11:d6:39:0d:e2:84:74
1313

1414
loadBalancer:

pkg/oci/client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ func New(cfg *Config) (Interface, error) {
141141
// The current go client will retry requests that are not retryable.
142142
baremetal.DisableAutoRetries(true),}
143143

144-
if cfg.Auth.PrivateKeyPassword != "" {
145-
opts = append(opts, baremetal.PrivateKeyPassword(cfg.Auth.PrivateKeyPassword))
144+
if cfg.Auth.PrivateKeyPassphrase != "" {
145+
opts = append(opts, baremetal.PrivateKeyPassword(cfg.Auth.PrivateKeyPassphrase))
146146
}
147147

148148
ociClient, err := baremetal.NewClient(

pkg/oci/client/config.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import (
2525
// AuthConfig holds the configuration required for communicating with the OCI
2626
// API.
2727
type AuthConfig struct {
28-
Region string `yaml:"region"`
29-
TenancyOCID string `yaml:"tenancy"`
30-
CompartmentOCID string `yaml:"compartment"`
31-
UserOCID string `yaml:"user"`
32-
PrivateKey string `yaml:"key"`
33-
Fingerprint string `yaml:"fingerprint"`
34-
PrivateKeyPassword string `yaml:"key_password"`
28+
Region string `yaml:"region"`
29+
TenancyOCID string `yaml:"tenancy"`
30+
CompartmentOCID string `yaml:"compartment"`
31+
UserOCID string `yaml:"user"`
32+
PrivateKey string `yaml:"key"`
33+
Fingerprint string `yaml:"fingerprint"`
34+
PrivateKeyPassphrase string `yaml:"key_passphrase"`
3535
}
3636

3737
// LoadBalancerConfig holds the configuration options for OCI load balancers.

0 commit comments

Comments
 (0)