Skip to content

Instantly share code, notes, and snippets.

Working from home

Jason Hall ImJasonH

Working from home
Block or report user

Report or block ImJasonH

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

From within this directory: go run ./
ImJasonH / git_resource.go
Created Jan 28, 2020
Sketch of change to migrate `git-init` to script mode (
View git_resource.go
// GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.
func (s *GitResource) GetInputTaskModifier(_ *TaskSpec, path string) (TaskModifier, error) {
return &InternalTaskModifier{
StepsToPrepend: []Step{{
Container: corev1.Container{
Name: names.SimpleNameGenerator.RestrictLengthWithRandomSuffix(gitSource + "-" + s.Name),
Image: s.GitImage,
WorkingDir: pipeline.WorkspaceDir,
// This is used to populate the ResourceResult status.
Env: []corev1.EnvVar{{
View go.mod
go 1.13
View gist:e28498d52e8ee9ded05e92ce679a6d3a
* gcloud-image (default: foo)
* args (default: ["help"])
* image (type: image)
ImJasonH / main.go
Created Dec 17, 2019
Example of parsing a YAML file into a Tekton Task
View main.go
import (
var (
View Dockerfile
FROM ubuntu
View whiteouter.go
package main
import (
ImJasonH / git.go
Created Jul 29, 2019
hacking on trying to write git objects (
View git.go
package main
import (

Migrating from Knative Build

This doc describes a process for users who are familiar with Knative Build and BuildTemplate resources to migrate to Tekton TaskRuns and Tasks, respectively.

Tekton's resources are heavily influenced by Knative's Build-related resources, with some additional features that enable them to be chained together inside a Pipeline, and provide additional flexibility and reusability.

| Knative | Tekton |


Much of this proposal is cribbed from proposals @ahmetb has previously made, ideas are not my own.

Expected Behavior

Users have an easy cruft-free way to express a multi-statement script in the body of a Task step, without having to understand advanced topics about containers, like what an entrypoint or a command is.

Users should only need to have passing familiarity with a shell environment to be successful using Tekton.

Actual Behavior

You can’t perform that action at this time.