Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 77c8d19

Browse files
committed
kcpAPIsGroupPresent
1 parent a93e0ba commit 77c8d19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func main() {
102102
LeaderElectionID: "68a0532d.my.domain",
103103
LeaderElectionConfig: restConfig,
104104
}
105-
if apisKcpGroupPresent(restConfig) {
105+
if kcpAPIsGroupPresent(restConfig) {
106106
setupLog.Info("Looking up virtual workspace URL")
107107
cfg, err := restConfigForAPIExport(ctx, restConfig, apiExportName)
108108
if err != nil {
@@ -203,7 +203,7 @@ func restConfigForAPIExport(ctx context.Context, cfg *rest.Config, apiExportName
203203
return cfg, nil
204204
}
205205

206-
func apisKcpGroupPresent(restConfig *rest.Config) bool {
206+
func kcpAPIsGroupPresent(restConfig *rest.Config) bool {
207207
discoveryClient, err := discovery.NewDiscoveryClientForConfig(restConfig)
208208
if err != nil {
209209
setupLog.Error(err, "failed to create discovery client")

0 commit comments

Comments
 (0)