Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ Learn more about Knative at: https://knative.dev`, cfg.Name),
Commands: []*cobra.Command{
NewCompletionCmd(),
NewVersionCmd(cfg.Version),
NewTektonClusterTasksCmd(),
NewMCPCmd(newClient),
},
},
Expand Down
27 changes: 0 additions & 27 deletions cmd/tkn_tasks.go

This file was deleted.

9 changes: 0 additions & 9 deletions pkg/pipelines/tekton/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tekton
import (
"bytes"
_ "embed"
"strings"
"text/template"
)

Expand Down Expand Up @@ -38,14 +37,6 @@ func getS2ITask() string {
return getTask(s2iTaskTemplate)
}

// GetClusterTasks returns multi-document yaml containing tekton tasks used by func.
func GetClusterTasks() string {
tasks := getBuildpackTask() + "\n---\n" + getS2ITask()
tasks = strings.ReplaceAll(tasks, "kind: Task", "kind: ClusterTask")
tasks = strings.ReplaceAll(tasks, "apiVersion: tekton.dev/v1", "apiVersion: tekton.dev/v1beta1")
return tasks
}

func getTask(t string) string {
tmpl, err := template.New("").Parse(t)
if err != nil {
Expand Down
Loading