Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Right steps for secret creation in generate-pipeline flow. #3180

Merged
merged 3 commits into from
Nov 6, 2019
Merged
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
20 changes: 17 additions & 3 deletions examples/generate-pipeline/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
----
Expand All @@ -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