diff --git a/controllers/redis_controller.go b/controllers/redis_controller.go index a73eb287f..e14bf8cd5 100644 --- a/controllers/redis_controller.go +++ b/controllers/redis_controller.go @@ -35,7 +35,7 @@ import ( type RedisReconciler struct { client.Client K8sClient kubernetes.Interface - Dk8sClinet dynamic.Interface + Dk8sClient dynamic.Interface Log logr.Logger Scheme *runtime.Scheme } diff --git a/controllers/rediscluster_controller.go b/controllers/rediscluster_controller.go index a3a65c04e..d9a123c2a 100644 --- a/controllers/rediscluster_controller.go +++ b/controllers/rediscluster_controller.go @@ -37,7 +37,7 @@ import ( type RedisClusterReconciler struct { client.Client K8sClient kubernetes.Interface - Dk8sClinet dynamic.Interface + Dk8sClient dynamic.Interface Log logr.Logger Scheme *runtime.Scheme } diff --git a/controllers/redisreplication_controller.go b/controllers/redisreplication_controller.go index a23cb8b3e..defc3e6d2 100644 --- a/controllers/redisreplication_controller.go +++ b/controllers/redisreplication_controller.go @@ -20,7 +20,7 @@ import ( type RedisReplicationReconciler struct { client.Client K8sClient kubernetes.Interface - Dk8sClinet dynamic.Interface + Dk8sClient dynamic.Interface Log logr.Logger Scheme *runtime.Scheme } diff --git a/controllers/redissentinel_controller.go b/controllers/redissentinel_controller.go index 03e686544..016135770 100644 --- a/controllers/redissentinel_controller.go +++ b/controllers/redissentinel_controller.go @@ -19,7 +19,7 @@ import ( type RedisSentinelReconciler struct { client.Client K8sClient kubernetes.Interface - Dk8sClinet dynamic.Interface + Dk8sClient dynamic.Interface Log logr.Logger Scheme *runtime.Scheme } diff --git a/main.go b/main.go index 3d22552ee..5f552bb35 100644 --- a/main.go +++ b/main.go @@ -107,7 +107,7 @@ func main() { os.Exit(1) } - dk8sClinet, err := k8sutils.GenerateK8sDynamicClient(k8sutils.GenerateK8sConfig) + dk8sClient, err := k8sutils.GenerateK8sDynamicClient(k8sutils.GenerateK8sConfig) if err != nil { setupLog.Error(err, "unable to create k8s dynamic client") os.Exit(1) @@ -116,7 +116,7 @@ func main() { if err = (&controllers.RedisReconciler{ Client: mgr.GetClient(), K8sClient: k8sclient, - Dk8sClinet: dk8sClinet, + Dk8sClient: dk8sClient, Log: ctrl.Log.WithName("controllers").WithName("Redis"), Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil { @@ -126,7 +126,7 @@ func main() { if err = (&controllers.RedisClusterReconciler{ Client: mgr.GetClient(), K8sClient: k8sclient, - Dk8sClinet: dk8sClinet, + Dk8sClient: dk8sClient, Log: ctrl.Log.WithName("controllers").WithName("RedisCluster"), Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil { @@ -136,7 +136,7 @@ func main() { if err = (&controllers.RedisReplicationReconciler{ Client: mgr.GetClient(), K8sClient: k8sclient, - Dk8sClinet: dk8sClinet, + Dk8sClient: dk8sClient, Log: ctrl.Log.WithName("controllers").WithName("RedisReplication"), Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil { @@ -146,7 +146,7 @@ func main() { if err = (&controllers.RedisSentinelReconciler{ Client: mgr.GetClient(), K8sClient: k8sclient, - Dk8sClinet: dk8sClinet, + Dk8sClient: dk8sClient, Log: ctrl.Log.WithName("controllers").WithName("RedisSentinel"), Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil {