Skip to content

Commit

Permalink
pacify linter
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Oct 13, 2023
1 parent d64f6cb commit 3f0518c
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,22 @@ var (
},
ResourceVersion: "",
}
globalListOptions = metav1.ListOptions{
TypeMeta: metav1.TypeMeta{
Kind: "",
APIVersion: "",
},
LabelSelector: "",
FieldSelector: "",
Watch: false,
AllowWatchBookmarks: false,
ResourceVersion: "",
ResourceVersionMatch: "",
TimeoutSeconds: nil,
Limit: 0,
Continue: "",
SendInitialEvents: nil,
}
)

type KubernetesManager struct {
Expand Down Expand Up @@ -1730,7 +1746,7 @@ func (manager *KubernetesManager) GetExecStream(ctx context.Context, pod *apiv1.
}

func (manager *KubernetesManager) HasComputeNodes(ctx context.Context) (bool, error) {
nodes, err := manager.kubernetesClientSet.CoreV1().Nodes().List(ctx, metav1.ListOptions{})
nodes, err := manager.kubernetesClientSet.CoreV1().Nodes().List(ctx, globalListOptions)
if err != nil {
return false, stacktrace.Propagate(err, "An error occurred while checking if the Kubernetes cluster has any nodes")
}
Expand Down

0 comments on commit 3f0518c

Please sign in to comment.