Skip to content

Commit

Permalink
chore: fix clinet typo (#751)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Cesbron <[email protected]>
  • Loading branch information
MathieuCesbron authored Jan 16, 2024
1 parent cd1e810 commit 169194a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion controllers/redis_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/rediscluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/redisreplication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/redissentinel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 169194a

Please sign in to comment.