Skip to content

Commit

Permalink
pkg/clusterconfig/clusterconfig: Rename "GetCoreClient" -> "getCoreCl…
Browse files Browse the repository at this point in the history
…ient"

The function was unused outside this package, and the lowercase name
makes the package's public API (which does not include this function)
more clear.
  • Loading branch information
wking committed Apr 23, 2019
1 parent 1e4baa8 commit 82e0ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/clusterconfig/clusterconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type Config struct {
Storage Storage
}

func GetCoreClient() (*coreset.CoreV1Client, error) {
func getCoreClient() (*coreset.CoreV1Client, error) {
kubeconfig, err := regopclient.GetConfig()
if err != nil {
return nil, err
Expand All @@ -69,7 +69,7 @@ func GetCoreClient() (*coreset.CoreV1Client, error) {
}

func GetInstallConfig() (*installer.InstallConfig, error) {
client, err := GetCoreClient()
client, err := getCoreClient()
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -99,7 +99,7 @@ func GetAWSConfig(listers *regopclient.Listers) (*Config, error) {
cfg.Storage.S3.Region = installConfig.Platform.AWS.Region
}

client, err := GetCoreClient()
client, err := getCoreClient()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 82e0ca6

Please sign in to comment.