From c0bc2d331719ed363e167aacc257ef88de22e978 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Wed, 6 Nov 2019 01:06:33 -0800 Subject: [PATCH] [docs] Right steps for secret creation in `generate-pipeline` flow. (#3180) * Right steps for secret creation * Add pipeline run * fix formatting --- examples/generate-pipeline/README.adoc | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/examples/generate-pipeline/README.adoc b/examples/generate-pipeline/README.adoc index ff993154a42..4901469c7c5 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) ---- @@ -20,8 +20,22 @@ 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 +---- +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