Skip to content

Commit

Permalink
Add linode client directly to
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Nov 3, 2023
1 parent 8a16e33 commit b37058e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
25 changes: 0 additions & 25 deletions cloud/scope/clients.go

This file was deleted.

11 changes: 6 additions & 5 deletions cloud/scope/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ import (
"context"

infrav1 "github.com/linode/cluster-api-provider-linode/api/v1alpha1"
"github.com/linode/linodego"
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
"sigs.k8s.io/cluster-api/util/patch"
"sigs.k8s.io/controller-runtime/pkg/client"
)

// ClusterScopeParams defines the input parameters used to create a new Scope.
type ClusterScopeParams struct {
LinodeClients
Client client.Client
Cluster *clusterv1.Cluster
Client client.Client
Cluster *clusterv1.Cluster
LinodeClient linodego.Client
LinodeCluster *infrav1.LinodeCluster
}

Expand All @@ -45,7 +46,7 @@ type ClusterScope struct {
client client.Client
patchHelper *patch.Helper

LinodeClients
Cluster *clusterv1.Cluster
LinodeClient linodego.Client
Cluster *clusterv1.Cluster
LinodeCluster *infrav1.LinodeCluster
}

0 comments on commit b37058e

Please sign in to comment.