Skip to content

Commit

Permalink
update yaml examples (tests) to use command
Browse files Browse the repository at this point in the history
now with entrypoint, steps should specify the command in the command
field and not in the args
  • Loading branch information
nader-ziada committed Mar 1, 2019
1 parent 984b168 commit 981a767
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
3 changes: 2 additions & 1 deletion examples/taskruns/taskrun-cluster-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ spec:
]
- name: dump-buildfile
image: ubuntu
args: ["cat", "/workspace/another-directory/BUILD"]
command: ["cat"]
args: ["/workspace/another-directory/BUILD"]
---
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
Expand Down
3 changes: 2 additions & 1 deletion examples/taskruns/taskrun-git-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ spec:
steps:
- name: dump-workspace
image: ubuntu
args: ["cat", "/workspace/gitspace/WORKSPACE"]
command: ["cat"]
args: ["/workspace/gitspace/WORKSPACE"]
---
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
Expand Down
3 changes: 2 additions & 1 deletion examples/taskruns/taskrun-home-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
args: ['-c', 'echo some stuff > /builder/home/stuff']
- name: read
image: ubuntu
args: ['cat', '/builder/home/stuff']
command: ['cat']
args: ['/builder/home/stuff']
- name: override-homevol
image: ubuntu
command: ['bash']
Expand Down
4 changes: 2 additions & 2 deletions examples/taskruns/taskrun-secret-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ spec:
steps:
- name: secret
image: ubuntu
args: ["cat", "/var/secret/ninja"]
command: ["cat"]
args: ["/var/secret/ninja"]
volumeMounts:
- name: secret-volume
mountPath: /var/secret

volumes:
- name: secret-volume
secret:
Expand Down
6 changes: 3 additions & 3 deletions examples/taskruns/taskrun-unnamed-steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ spec:
taskSpec:
steps:
- image: 'ubuntu'
args: ['true']
command: ['true']
- image: 'ubuntu'
args: ['true']
command: ['true']
- image: 'ubuntu'
args: ['true']
command: ['true']
3 changes: 2 additions & 1 deletion examples/taskruns/taskrun-volume-secret-args.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ spec:
steps:
- name: read
image: ubuntu
args: ["cat", "/secretpath/ninja"]
command: ["cat"]
args: ["/secretpath/ninja"]
volumeMounts:
- name: custom
mountPath: /secretpath
Expand Down
3 changes: 2 additions & 1 deletion examples/taskruns/taskrun-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ spec:
args: ['-c', 'echo some stuff > /workspace/stuff']
- name: read
image: ubuntu
args: ['cat', '/workspace/stuff']
command: ['cat']
args: ['/workspace/stuff']

- name: override-workspace
image: ubuntu
Expand Down

0 comments on commit 981a767

Please sign in to comment.