Skip to content

Commit 6b40333

Browse files
committed
fix typo
1 parent c568e77 commit 6b40333

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

pkg/apis/deployment/v1/plan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const (
198198

199199
// ArangoTask actions
200200

201-
// ActionTypePing it a mock to check if the action flow is working
201+
// ActionTypePing is a mock to check if the action flow is working
202202
ActionTypePing ActionType = "Ping"
203203
)
204204

pkg/apis/deployment/v2alpha1/plan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const (
198198

199199
// ArangoTask actions
200200

201-
// ActionTypePing it a mock to check if the action flow is working
201+
// ActionTypePing is a mock to check if the action flow is working
202202
ActionTypePing ActionType = "Ping"
203203
)
204204

pkg/deployment/reconcile/action_ping.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ func init() {
3131
}
3232

3333
func newPing(action api.Action, actionCtx ActionContext) Action {
34-
a := &pingDbServerAction{}
34+
a := &pingAction{}
3535

3636
a.actionImpl = newActionImplDefRef(action, actionCtx)
3737

3838
return a
3939
}
4040

41-
type pingDbServerAction struct {
41+
type pingAction struct {
4242
actionImpl
4343
}
4444

45-
func (a *pingDbServerAction) Start(ctx context.Context) (bool, error) {
45+
func (a *pingAction) Start(ctx context.Context) (bool, error) {
4646
if a.action.TaskID == "" {
4747
a.log.Error("taskName parameter is missing")
4848
return true, nil
@@ -51,6 +51,6 @@ func (a *pingDbServerAction) Start(ctx context.Context) (bool, error) {
5151
return false, nil
5252
}
5353

54-
func (a *pingDbServerAction) CheckProgress(ctx context.Context) (bool, bool, error) {
54+
func (a *pingAction) CheckProgress(ctx context.Context) (bool, bool, error) {
5555
return true, false, nil
56-
}
56+
}

pkg/deployment/reconcile/plan_executor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func (d *Reconciler) updateTaskStatus(ctx context.Context, action api.Action, st
388388
return
389389
}
390390

391-
task, exist := tasksCache.GetSimpleById(action.TaskID)
391+
task, exist := tasksCache.GetSimpleByID(action.TaskID)
392392
if !exist {
393393
d.log.Error("ArangoTask not found")
394394
return

pkg/deployment/resources/inspector/at_v1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (p *arangoTasksInspectorV1) GetSimple(name string) (*api.ArangoTask, bool)
101101
return arangoTask, true
102102
}
103103

104-
func (p *arangoTasksInspectorV1) GetSimpleById(id types.UID) (*api.ArangoTask, bool) {
104+
func (p *arangoTasksInspectorV1) GetSimpleByID(id types.UID) (*api.ArangoTask, bool) {
105105
for _, task := range p.arangoTasks {
106106
if task.UID == id {
107107
return task, true

pkg/util/k8sutil/inspector/arangotask/v1/loader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Inspector interface {
3232

3333
ListSimple() []*api.ArangoTask
3434
GetSimple(name string) (*api.ArangoTask, bool)
35-
GetSimpleById(id types.UID) (*api.ArangoTask, bool)
35+
GetSimpleByID(id types.UID) (*api.ArangoTask, bool)
3636
Filter(filters ...Filter) []*api.ArangoTask
3737
Iterate(action Action, filters ...Filter) error
3838
Read() ReadInterface

0 commit comments

Comments
 (0)