From dd8b73f31007c13a98b6f65fc0d41978635536ab Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Tue, 5 Nov 2019 16:10:34 -0800 Subject: [PATCH 1/3] Right steps for secret creation --- examples/generate-pipeline/README.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/generate-pipeline/README.adoc b/examples/generate-pipeline/README.adoc index ff993154a42..e32699f6253 100644 --- a/examples/generate-pipeline/README.adoc +++ b/examples/generate-pipeline/README.adoc @@ -8,7 +8,7 @@ _Please keep in mind that the generate-pipeline command is still a WIP_ Prerequisites: * Install tekton on your cluster (https://github.com/tektoncd/pipeline/blob/master/docs/install.md) -* Have kaniko secrets setup (https://github.com/GoogleContainerTools/kaniko) +* Have kaniko secrets setup and installed in your cluster (https://github.com/GoogleContainerTools/kaniko#kubernetes-secret) * Container registry must be public * Give your default service account the cluster-admin role (necessary to have pipeline access secrets) ---- From d5a64414c2231d41ee3dc78778c59713120ad8d9 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Tue, 5 Nov 2019 16:22:13 -0800 Subject: [PATCH 2/3] Add pipeline run --- examples/generate-pipeline/README.adoc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/examples/generate-pipeline/README.adoc b/examples/generate-pipeline/README.adoc index e32699f6253..df1727a6417 100644 --- a/examples/generate-pipeline/README.adoc +++ b/examples/generate-pipeline/README.adoc @@ -20,8 +20,23 @@ kubectl create clusterrolebinding serviceaccounts-cluster-admin \ To generate and run a pipeline: * Run skaffold generate-pipeline -* Modify skaffold.yaml to use a valid GCSbucket for kaniko +* Modify skaffold.yaml to use a valid GCSbucket for kaniko if needed. * Commit and push updated skaffold.yaml * kubectl apply -f pipeline.yaml -* Create a pipelinerun.yaml +* Create a pipelinerun.yaml + +```yaml +apiVersion: tekton.dev/v1alpha1 +kind: PipelineRun +metadata: + name: skaffold-pipeline-run +spec: + pipelineRef: + name: skaffold-pipeline + resources: + - name: source-repo + resourceRef: + name: source-git + ``` + * kubectl apply -f pipelinerun.yaml From fd0a09889505f69285a7710eb1af24da8a731920 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Tue, 5 Nov 2019 16:23:53 -0800 Subject: [PATCH 3/3] fix formatting --- examples/generate-pipeline/README.adoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/generate-pipeline/README.adoc b/examples/generate-pipeline/README.adoc index df1727a6417..4901469c7c5 100644 --- a/examples/generate-pipeline/README.adoc +++ b/examples/generate-pipeline/README.adoc @@ -24,8 +24,7 @@ To generate and run a pipeline: * Commit and push updated skaffold.yaml * kubectl apply -f pipeline.yaml * Create a pipelinerun.yaml - -```yaml +---- apiVersion: tekton.dev/v1alpha1 kind: PipelineRun metadata: @@ -37,6 +36,6 @@ spec: - name: source-repo resourceRef: name: source-git - ``` - +---- + * kubectl apply -f pipelinerun.yaml