Skip to content

Commit

Permalink
chore: fix some function names in comment (#6122)
Browse files Browse the repository at this point in the history
Signed-off-by: loselarry <[email protected]>
  • Loading branch information
loselarry authored Dec 27, 2024
1 parent a796d24 commit 4ce86a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flyteplugins/go/tasks/pluginmachinery/k8s/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ type UpdateResourceOperation struct {
Options []client.UpdateOption
}

// AbortBehavior that patches the default resource
// AbortBehaviorPatchDefaultResource that patches the default resource
func AbortBehaviorPatchDefaultResource(patchOperation PatchResourceOperation, deleteOnErr bool) AbortBehavior {
return AbortBehaviorPatch(patchOperation, deleteOnErr, nil)
}

// AbortBehavior that patches the specified resource
// AbortBehaviorPatch that patches the specified resource
func AbortBehaviorPatch(patchOperation PatchResourceOperation, deleteOnErr bool, resource client.Object) AbortBehavior {
return AbortBehavior{
Resource: resource,
Expand All @@ -162,12 +162,12 @@ func AbortBehaviorPatch(patchOperation PatchResourceOperation, deleteOnErr bool,
}
}

// AbortBehavior that updates the default resource
// AbortBehaviorUpdateDefaultResource that updates the default resource
func AbortBehaviorUpdateDefaultResource(updateOperation UpdateResourceOperation, deleteOnErr bool) AbortBehavior {
return AbortBehaviorUpdate(updateOperation, deleteOnErr, nil)
}

// AbortBehavior that updates the specified resource
// AbortBehaviorUpdate that updates the specified resource
func AbortBehaviorUpdate(updateOperation UpdateResourceOperation, deleteOnErr bool, resource client.Object) AbortBehavior {
return AbortBehavior{
Resource: resource,
Expand All @@ -176,12 +176,12 @@ func AbortBehaviorUpdate(updateOperation UpdateResourceOperation, deleteOnErr bo
}
}

// AbortBehavior that deletes the default resource
// AbortBehaviorDeleteDefaultResource that deletes the default resource
func AbortBehaviorDeleteDefaultResource() AbortBehavior {
return AbortBehaviorDelete(nil)
}

// AbortBehavior that deletes the specified resource
// AbortBehaviorDelete that deletes the specified resource
func AbortBehaviorDelete(resource client.Object) AbortBehavior {
return AbortBehavior{
Resource: resource,
Expand Down

0 comments on commit 4ce86a8

Please sign in to comment.