forked from knative/func
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: embed tkn tasks in func binary (knative#2396)
* feat: embed tkn tasks in func binary Embed Tekton tasks for direct on cluster build. Signed-off-by: Matej Vašek <[email protected]> * feat: embed tkn tasks in func binary Embed Tekton tasks for PaC build. Signed-off-by: Matej Vašek <[email protected]> * feat: added tkn-tasks sub-command This new command prints tektons tasks in form of multi-document yaml, these tekton tasks may requird to be installed for some advanced functionality. Signed-off-by: Matej Vašek <[email protected]> * chore: remove unused files Signed-off-by: Matej Vašek <[email protected]> * feat: make deployer image settable via linker Signed-off-by: Matej Vašek <[email protected]> --------- Signed-off-by: Matej Vašek <[email protected]>
- Loading branch information
1 parent
3ef5608
commit 3e8dc4d
Showing
9 changed files
with
255 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
|
||
"knative.dev/func/pkg/pipelines/tekton" | ||
) | ||
|
||
func NewTektonClusterTasksCmd() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "tkn-tasks", | ||
Short: "List tekton cluster tasks as multi-document yaml", | ||
Long: `This command prints tekton tekton task embed in the func binary. | ||
Some advanced functionality like OpenShift's Web Console build my require installation of these tasks. | ||
Installation: func tkn-tasks | kubectl apply -f - | ||
`, | ||
Hidden: true, | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
_, err := fmt.Fprintln(cmd.OutOrStdout(), tekton.GetClusterTasks()) | ||
return err | ||
}, | ||
} | ||
|
||
return cmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml
This file was deleted.
Oops, something went wrong.
136 changes: 0 additions & 136 deletions
136
pkg/pipelines/resources/tekton/task/func-s2i/0.1/func-s2i.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.