Created
June 8, 2020 22:37
-
-
Save pritidesai/26cbf4efcc482c96b8b8b81c0ca4b10f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: task-echo-good-morning | |
spec: | |
steps: | |
- name: echo | |
image: ubuntu | |
script: | | |
#!/usr/bin/env bash | |
echo "Good Morning!" | |
--- | |
apiVersion: tekton.dev/v1beta1 | |
kind: PipelineRun | |
metadata: | |
name: pipelinerun-without-taskspec-to-echo-good-morning | |
spec: | |
pipelineSpec: | |
tasks: | |
- name: echo-good-morning | |
taskRef: | |
name: task-echo-good-morning |
Author
pritidesai
commented
Jun 8, 2020
kubectl get tasks task-echo-good-morning -o json
{
"apiVersion": "tekton.dev/v1beta1",
"kind": "Task",
"metadata": {
"annotations": {
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"tekton.dev/v1beta1\",\"kind\":\"Task\",\"metadata\":{\"annotations\":{},\"name\":\"task-echo-good-morning\",\"namespace\":\"default\"},\"spec\":{\"steps\":[{\"image\":\"ubuntu\",\"name\":\"echo\",\"script\":\"#!/usr/bin/env bash\\necho \\\"Good Morning!\\\" \\n\"}]}}\n"
},
"creationTimestamp": "2020-06-08T22:39:55Z",
"generation": 1,
"name": "task-echo-good-morning",
"namespace": "default",
"resourceVersion": "4237913",
"selfLink": "/apis/tekton.dev/v1beta1/namespaces/default/tasks/task-echo-good-morning",
"uid": "c6ac5b5e-948b-413d-aadc-ace32954bf1d"
},
"spec": {
"steps": [
{
"image": "ubuntu",
"name": "echo",
"resources": {},
"script": "#!/usr/bin/env bash\necho \"Good Morning!\" \n"
}
]
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment