Skip to content

Commit 13d4252

Browse files
committed
Remove clusterctl alpha topology plan + Cleanup Cluster topology
controller Signed-off-by: Stefan Büringer [email protected]
1 parent d44a8b0 commit 13d4252

30 files changed

+85
-3640
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ linters:
231231
# should be removed as the referenced deprecated item is removed from the project.
232232
- linters:
233233
- staticcheck
234-
text: 'SA1019: (bootstrapv1.ClusterStatus|DockerMachine.Spec.Bootstrapped|machineStatus.Bootstrapped|dockerMachine.Spec.Backend.Docker.Bootstrapped|dockerMachine.Spec.Bootstrapped|devMachine.Spec.Backend.Docker.Bootstrapped|c.TopologyPlan|clusterv1.ClusterClassVariableMetadata|clusterv1beta1.ClusterClassVariableMetadata|(variable|currentDefinition|specVar|newVariableDefinition|statusVarDefinition|out).DeprecatedV1Beta1Metadata) is deprecated'
234+
text: 'SA1019: (bootstrapv1.ClusterStatus|DockerMachine.Spec.Bootstrapped|machineStatus.Bootstrapped|dockerMachine.Spec.Backend.Docker.Bootstrapped|dockerMachine.Spec.Bootstrapped|devMachine.Spec.Backend.Docker.Bootstrapped|clusterv1.ClusterClassVariableMetadata|clusterv1beta1.ClusterClassVariableMetadata|(variable|currentDefinition|specVar|newVariableDefinition|statusVarDefinition|out).DeprecatedV1Beta1Metadata) is deprecated'
235235
# Deprecations for MD revision management
236236
- linters:
237237
- staticcheck

cmd/clusterctl/client/client.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ type AlphaClient interface {
9191
//
9292
// Deprecated: RolloutUndo is deprecated and will be removed in one of the upcoming releases.
9393
RolloutUndo(ctx context.Context, options RolloutUndoOptions) error
94-
// TopologyPlan dry runs the topology reconciler
95-
//
96-
// Deprecated: TopologyPlan is deprecated and will be removed in one of the upcoming releases.
97-
TopologyPlan(ctx context.Context, options TopologyPlanOptions) (*TopologyPlanOutput, error)
9894
}
9995

10096
// YamlPrinter exposes methods that prints the processed template and

cmd/clusterctl/client/client_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ func (f fakeClient) RolloutUndo(ctx context.Context, options RolloutUndoOptions)
149149
return f.internalClient.RolloutUndo(ctx, options)
150150
}
151151

152-
func (f fakeClient) TopologyPlan(ctx context.Context, options TopologyPlanOptions) (*cluster.TopologyPlanOutput, error) {
153-
return f.internalClient.TopologyPlan(ctx, options)
154-
}
155-
156152
// newFakeClient returns a clusterctl client that allows to execute tests on a set of fake config, fake repositories and fake clusters.
157153
// you can use WithCluster and WithRepository to prepare for the test case.
158154
func newFakeClient(ctx context.Context, configClient config.Client) *fakeClient {
@@ -326,10 +322,6 @@ func (f *fakeClusterClient) WorkloadCluster() cluster.WorkloadCluster {
326322
return f.internalclient.WorkloadCluster()
327323
}
328324

329-
func (f *fakeClusterClient) Topology() cluster.TopologyClient {
330-
return f.internalclient.Topology()
331-
}
332-
333325
func (f *fakeClusterClient) WithObjs(objs ...client.Object) *fakeClusterClient {
334326
f.fakeProxy.WithObjs(objs...)
335327
return f

cmd/clusterctl/client/cluster/client.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ type Client interface {
8181

8282
// WorkloadCluster has methods for fetching kubeconfig of workload cluster from management cluster.
8383
WorkloadCluster() WorkloadCluster
84-
85-
// Topology returns a TopologyClient that can be used for performing dry run executions of the topology reconciler.
86-
Topology() TopologyClient
8784
}
8885

8986
// PollImmediateWaiter tries a condition func until it returns true, an error, or the timeout is reached.
@@ -147,10 +144,6 @@ func (c *clusterClient) WorkloadCluster() WorkloadCluster {
147144
return newWorkloadCluster(c.proxy)
148145
}
149146

150-
func (c *clusterClient) Topology() TopologyClient {
151-
return newTopologyClient(c.proxy, c.ProviderInventory())
152-
}
153-
154147
// Option is a configuration option supplied to New.
155148
type Option func(*clusterClient)
156149

0 commit comments

Comments
 (0)