@@ -21,19 +21,19 @@ const (
21
21
)
22
22
23
23
type Resource interface {
24
- Define (context.Context , * kamajiv1alpha1.TenantControlPlane ) error
25
- ShouldCleanup (* kamajiv1alpha1.TenantControlPlane ) bool
26
- CleanUp (context.Context , * kamajiv1alpha1.TenantControlPlane ) (bool , error )
27
- CreateOrUpdate (context.Context , * kamajiv1alpha1.TenantControlPlane ) (controllerutil.OperationResult , error )
24
+ Define (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) error
25
+ ShouldCleanup (tcp * kamajiv1alpha1.TenantControlPlane ) bool
26
+ CleanUp (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) (bool , error )
27
+ CreateOrUpdate (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) (controllerutil.OperationResult , error )
28
28
GetName () string
29
- ShouldStatusBeUpdated (context.Context , * kamajiv1alpha1.TenantControlPlane ) bool
30
- UpdateTenantControlPlaneStatus (context.Context , * kamajiv1alpha1.TenantControlPlane ) error
29
+ ShouldStatusBeUpdated (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) bool
30
+ UpdateTenantControlPlaneStatus (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) error
31
31
}
32
32
33
33
type DeletableResource interface {
34
34
GetName () string
35
- Define (context.Context , * kamajiv1alpha1.TenantControlPlane ) error
36
- Delete (context.Context , * kamajiv1alpha1.TenantControlPlane ) error
35
+ Define (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) error
36
+ Delete (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) error
37
37
}
38
38
39
39
type KubeadmResource interface {
@@ -45,9 +45,9 @@ type KubeadmPhaseResource interface {
45
45
Resource
46
46
KubeadmResource
47
47
GetClient () client.Client
48
- GetKubeadmFunction (context.Context , * kamajiv1alpha1.TenantControlPlane ) (func (clientset.Interface , * kubeadm.Configuration ) ([]byte , error ), error )
49
- GetStatus (* kamajiv1alpha1.TenantControlPlane ) (kamajiv1alpha1.KubeadmConfigChecksumDependant , error )
50
- SetKubeadmConfigChecksum (string )
48
+ GetKubeadmFunction (ctx context.Context , tcp * kamajiv1alpha1.TenantControlPlane ) (func (clientset.Interface , * kubeadm.Configuration ) ([]byte , error ), error )
49
+ GetStatus (tcp * kamajiv1alpha1.TenantControlPlane ) (kamajiv1alpha1.KubeadmConfigChecksumDependant , error )
50
+ SetKubeadmConfigChecksum (checksum string )
51
51
GetWatchedObject () client.Object
52
52
GetPredicateFunc () func (obj client.Object ) bool
53
53
}
0 commit comments