Skip to content

Commit 2cc0187

Browse files
Remove LKE cluster dashboard function, tests, and related fixture (#975)
1 parent 65d7c23 commit 2cc0187

5 files changed

Lines changed: 0 additions & 745 deletions

File tree

lke_clusters.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ type LKEClusterKubeconfig struct {
8888
KubeConfig string `json:"kubeconfig"` // Base64-encoded Kubeconfig file for this Cluster.
8989
}
9090

91-
// LKEClusterDashboard fields are those returned by GetLKEClusterDashboard
92-
type LKEClusterDashboard struct {
93-
URL string `json:"url"`
94-
}
95-
9691
// LKEVersion fields are those returned by GetLKEVersion
9792
type LKEVersion struct {
9893
ID string `json:"id"`
@@ -276,12 +271,6 @@ func (c *Client) DeleteLKEClusterKubeconfig(ctx context.Context, clusterID int)
276271
return doDELETERequest(ctx, c, e)
277272
}
278273

279-
// GetLKEClusterDashboard gets information about the dashboard for an LKE cluster
280-
func (c *Client) GetLKEClusterDashboard(ctx context.Context, clusterID int) (*LKEClusterDashboard, error) {
281-
e := formatAPIPath("lke/clusters/%d/dashboard", clusterID)
282-
return doGETRequest[LKEClusterDashboard](ctx, c, e)
283-
}
284-
285274
// RecycleLKEClusterNodes recycles all nodes in all pools of the specified LKE Cluster.
286275
func (c *Client) RecycleLKEClusterNodes(ctx context.Context, clusterID int) error {
287276
e := formatAPIPath("lke/clusters/%d/recycle", clusterID)

0 commit comments

Comments
 (0)