Skip to content

Commit e04fd1c

Browse files
authored
Update to use generateName in sample (#41)
1 parent 5c8e646 commit e04fd1c

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

docs/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
## Files
44

5-
auth.yaml: (template) create secrets for github and docker registry and create the service account
6-
gitconfig: (template) data file for the gitconfig configmap. The config map is created by `kubectl create configmap promoteconfigmap --from-file=gitconfig`
5+
- auth.yaml: (template) create secrets for github and docker registry and create the service account
6+
- gitconfig: (template) data file for the gitconfig configmap. The config map is created by `kubectl create configmap promoteconfigmap --from-file=gitconfig`
77

8-
promotesecret.yaml: (template) create an access token secret for the github repository
9-
resources.yaml: (template) create pipeline resources for github and docker repository
8+
- promotesecret.yaml: (template) create an access token secret for the github repository
9+
- resources.yaml: (template) create pipeline resources for github and docker repository
1010

11-
build-task.yaml: create a build push task
12-
servicepromote.yaml: (template)create a promote from service repo to env repo task
13-
servicepromotepipeline.yaml: create a pipeline that executes build, push and promote
14-
servicepromotepipelinerun.yaml: create a pipelinerun that executes the servicepromotepipeline
11+
- build-task.yaml: create a build push task
12+
- servicepromote.yaml: (template)create a promote from service repo to env repo task
13+
- servicepromotepipeline.yaml: create a pipeline that executes build, push and promote
14+
- servicepromotepipelinerun.yaml: create a pipelinerun that executes the servicepromotepipeline
1515

16-
promote.yaml: (template)create a promote from one env repo to another env repo task
17-
promoterun.yaml: create a taskrun that execute promote task
16+
- promote.yaml: (template)create a promote from one env repo to another env repo task
17+
- promoterun.yaml: create a taskrun that execute promote task
1818

1919
## Build docker image with `service promote` command
2020

@@ -28,9 +28,9 @@ promoterun.yaml: create a taskrun that execute promote task
2828

2929
- edit all yaml files marked as (template) and gitconfig file. `<xxx>` must be replaced with the real value
3030
- create a new namespace e.g. `kubectl create ns promote`
31-
- apply auth.yaml, promotesecret.yaml, resources.yaml, build-task.yaml, servicepromote.yaml and servicepromotepipelinerun.yaml in the namespace e.g. `kubectl -n <namespace> apply -f <yaml file name>
31+
- apply auth.yaml, promotesecret.yaml, resources.yaml, build-task.yaml, servicepromote.yaml and servicepromotepipeline.yaml in the namespace e.g. `kubectl apply -n <namespace> -f <yaml file name>`
3232
- create a configmap by `kubectl create configmap promoteconfigmap --from-file=gitconfig -n <namespace>`
3333

3434
## Execute pipeline
3535

36-
- create the servicepromotepipelinerun by applying servicepromotepipelinerun.yaml e.g. `apply -n <namespace> apply -f servicepromotepipelinerun.yaml`
36+
- create the servicepromotepipelinerun using the servicepromotepipelinerun.yaml e.g. `kubectl create -n <namespace> -f servicepromotepipelinerun.yaml`

docs/promoterun.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: tekton.dev/v1beta1
22
kind: TaskRun
33
metadata:
4-
name: promoterun
4+
generateName: promoterun-
55
spec:
66
params:
77
- name: github-secret

docs/servicepromotepipelinerun.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: tekton.dev/v1beta1
22
kind: PipelineRun
33
metadata:
4-
name: service-promote-pipelinerun
4+
generateName: service-promote-pipelinerun-
55
spec:
66
resources:
77
- name: git-source

0 commit comments

Comments
 (0)