Skip to content

Commit eae6b34

Browse files
authored
Merge pull request kubernetes-sigs#9778 from fabriziopandini/cleanup-inmemory-provider
🌱 Drop unused runtime features for the in-memory provider
2 parents 47bfc14 + c5c0feb commit eae6b34

File tree

25 files changed

+7
-1375
lines changed

25 files changed

+7
-1375
lines changed

test/infrastructure/inmemory/internal/cloud/alias.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package cloud
1919
import (
2020
"sigs.k8s.io/controller-runtime/pkg/client"
2121

22-
cbuilder "sigs.k8s.io/cluster-api/test/infrastructure/inmemory/internal/cloud/runtime/builder"
2322
cclient "sigs.k8s.io/cluster-api/test/infrastructure/inmemory/internal/cloud/runtime/client"
2423
cmanager "sigs.k8s.io/cluster-api/test/infrastructure/inmemory/internal/cloud/runtime/manager"
2524
)
@@ -37,7 +36,4 @@ type Manager cmanager.Manager
3736
var (
3837
// NewManager returns a new Manager for creating Controllers.
3938
NewManager = cmanager.New
40-
41-
// NewControllerManagedBy returns a new controller builder that will be started by the provided Manager.
42-
NewControllerManagedBy = cbuilder.ControllerManagedBy
4339
)

test/infrastructure/inmemory/internal/cloud/doc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ We can't use controller-runtime directly for the following reasons:
2727
* data should be stored in-memory
2828
* we would like that objects in memory behave like Kubernetes objects (garbage collection)
2929
30-
The Manager, is the object responsible for the lifecycle of objects; it also allows
31-
defining controllers.
30+
The Manager, is the object responsible for the lifecycle of objects.
3231
*/
3332
package cloud

test/infrastructure/inmemory/internal/cloud/runtime/builder/builder.go

Lines changed: 0 additions & 229 deletions
This file was deleted.

test/infrastructure/inmemory/internal/cloud/runtime/builder/doc.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

test/infrastructure/inmemory/internal/cloud/runtime/builder/options.go

Lines changed: 0 additions & 58 deletions
This file was deleted.

test/infrastructure/inmemory/internal/cloud/runtime/cache/cache.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
)
3636

3737
// Cache implements an in-memory cache.
38-
// TODO: consider if to move to internal.
3938
type Cache interface {
4039
Start(ctx context.Context) error
4140

test/infrastructure/inmemory/internal/cloud/runtime/cache/doc.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ limitations under the License.
1818
Package cache defines resource group aware Cache.
1919
2020
The Cache implements sync loop and garbage collector inspired from the ones existing
21-
in Kubernetes, but in this case only finalizers are respected while currently there is not
22-
a concept of ownerReferences.
21+
in Kubernetes.
2322
24-
Note: The cloud runtime is using a Cache for all the resource groups, so it will be possible
25-
to implement controllers processing request from all the resources groups.
23+
Note: The cloud runtime is using a Cache for all the resource groups.
2624
*/
2725
package cache

0 commit comments

Comments
 (0)