Last active
July 7, 2020 05:59
-
-
Save pritidesai/7390dfc5440c599f51daaa473e153161 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| -> kubectl get pr pipelinerun-with-params -o json | |
| { | |
| "apiVersion": "tekton.dev/v1beta1", | |
| "kind": "PipelineRun", | |
| "metadata": { | |
| "annotations": { | |
| "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"tekton.dev/v1beta1\",\"kind\":\"Pipeline\",\"metadata\":{\"annotations\":{},\"name\":\"pipeline-with-params\",\"namespace\":\"default\"},\"spec\":{\"finally\":[{\"name\":\"final-sum-params\",\"params\":[{\"name\":\"a\",\"value\":\"$(params.pl-param-x)\"},{\"name\":\"b\",\"value\":\"$(params.pl-param-y)\"}],\"taskRef\":{\"name\":\"sum-params\"}}],\"params\":[{\"default\":\"1\",\"name\":\"pl-param-x\",\"type\":\"string\"},{\"default\":\"1\",\"name\":\"pl-param-y\",\"type\":\"string\"}],\"tasks\":[{\"name\":\"sum-params\",\"params\":[{\"name\":\"a\",\"value\":\"$(params.pl-param-x)\"},{\"name\":\"b\",\"value\":\"$(params.pl-param-y)\"}],\"taskRef\":{\"name\":\"sum-params\"}}]}}\n" | |
| }, | |
| "creationTimestamp": "2020-07-06T21:50:42Z", | |
| "generation": 1, | |
| "labels": { | |
| "tekton.dev/pipeline": "pipeline-with-params" | |
| }, | |
| "name": "pipelinerun-with-params", | |
| "namespace": "default", | |
| "resourceVersion": "5105798", | |
| "selfLink": "/apis/tekton.dev/v1beta1/namespaces/default/pipelineruns/pipelinerun-with-params", | |
| "uid": "ed075ffd-8d66-4d7b-a647-f52ec0ac5c2c" | |
| }, | |
| "spec": { | |
| "params": [ | |
| { | |
| "name": "pl-param-x", | |
| "value": "100" | |
| }, | |
| { | |
| "name": "pl-param-y", | |
| "value": "500" | |
| } | |
| ], | |
| "pipelineRef": { | |
| "name": "pipeline-with-params" | |
| }, | |
| "timeout": "1h0m0s" | |
| }, | |
| "status": { | |
| "completionTime": "2020-07-06T21:50:53Z", | |
| "conditions": [ | |
| { | |
| "lastTransitionTime": "2020-07-06T21:50:53Z", | |
| "message": "Tasks Completed: 2 (Failed: 0, Cancelled 0), Skipped: 0", | |
| "reason": "Succeeded", | |
| "status": "True", | |
| "type": "Succeeded" | |
| } | |
| ], | |
| "pipelineSpec": { | |
| "finally": [ | |
| { | |
| "name": "final-sum-params", | |
| "params": [ | |
| { | |
| "name": "a", | |
| "value": "$(params.pl-param-x)" | |
| }, | |
| { | |
| "name": "b", | |
| "value": "$(params.pl-param-y)" | |
| } | |
| ], | |
| "taskRef": { | |
| "kind": "Task", | |
| "name": "sum-params" | |
| } | |
| } | |
| ], | |
| "params": [ | |
| { | |
| "default": "1", | |
| "name": "pl-param-x", | |
| "type": "string" | |
| }, | |
| { | |
| "default": "1", | |
| "name": "pl-param-y", | |
| "type": "string" | |
| } | |
| ], | |
| "tasks": [ | |
| { | |
| "name": "sum-params", | |
| "params": [ | |
| { | |
| "name": "a", | |
| "value": "$(params.pl-param-x)" | |
| }, | |
| { | |
| "name": "b", | |
| "value": "$(params.pl-param-y)" | |
| } | |
| ], | |
| "taskRef": { | |
| "kind": "Task", | |
| "name": "sum-params" | |
| } | |
| } | |
| ] | |
| }, | |
| "startTime": "2020-07-06T21:50:42Z", | |
| "taskRuns": { | |
| "pipelinerun-with-params-final-sum-params-rcz7c": { | |
| "pipelineTaskName": "final-sum-params", | |
| "status": { | |
| "completionTime": "2020-07-06T21:50:53Z", | |
| "conditions": [ | |
| { | |
| "lastTransitionTime": "2020-07-06T21:50:53Z", | |
| "message": "All Steps have completed executing", | |
| "reason": "Succeeded", | |
| "status": "True", | |
| "type": "Succeeded" | |
| } | |
| ], | |
| "podName": "pipelinerun-with-params-final-sum-params-rcz7c-pod-r7lq4", | |
| "startTime": "2020-07-06T21:50:48Z", | |
| "steps": [ | |
| { | |
| "container": "step-sum", | |
| "imageID": "docker-pullable://bash@sha256:376bd611ec5dfc1248a2d21d921bd62d0b858344ce1516cd133249c0a814387d", | |
| "name": "sum", | |
| "terminated": { | |
| "containerID": "docker://931983ae2b03703f9373349f42417737355aed6aadf5fdee635923af6cd694ff", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:52Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:52Z" | |
| } | |
| } | |
| ], | |
| "taskSpec": { | |
| "params": [ | |
| { | |
| "default": "1", | |
| "description": "The first integer", | |
| "name": "a", | |
| "type": "string" | |
| }, | |
| { | |
| "default": "1", | |
| "description": "The second integer", | |
| "name": "b", | |
| "type": "string" | |
| } | |
| ], | |
| "steps": [ | |
| { | |
| "image": "bash:latest", | |
| "name": "sum", | |
| "resources": {}, | |
| "script": "#!/usr/bin/env bash\necho -n $(( \"$(inputs.params.a)\" + \"$(inputs.params.b)\" ))\n" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "pipelinerun-with-params-sum-params-7sxmn": { | |
| "pipelineTaskName": "sum-params", | |
| "status": { | |
| "completionTime": "2020-07-06T21:50:48Z", | |
| "conditions": [ | |
| { | |
| "lastTransitionTime": "2020-07-06T21:50:48Z", | |
| "message": "All Steps have completed executing", | |
| "reason": "Succeeded", | |
| "status": "True", | |
| "type": "Succeeded" | |
| } | |
| ], | |
| "podName": "pipelinerun-with-params-sum-params-7sxmn-pod-9d24h", | |
| "startTime": "2020-07-06T21:50:42Z", | |
| "steps": [ | |
| { | |
| "container": "step-sum", | |
| "imageID": "docker-pullable://bash@sha256:376bd611ec5dfc1248a2d21d921bd62d0b858344ce1516cd133249c0a814387d", | |
| "name": "sum", | |
| "terminated": { | |
| "containerID": "docker://4c611654592fc95891a7e84c352ac19f07b04672b9e4da6a3b0145719559b676", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:47Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:47Z" | |
| } | |
| } | |
| ], | |
| "taskSpec": { | |
| "params": [ | |
| { | |
| "default": "1", | |
| "description": "The first integer", | |
| "name": "a", | |
| "type": "string" | |
| }, | |
| { | |
| "default": "1", | |
| "description": "The second integer", | |
| "name": "b", | |
| "type": "string" | |
| } | |
| ], | |
| "steps": [ | |
| { | |
| "image": "bash:latest", | |
| "name": "sum", | |
| "resources": {}, | |
| "script": "#!/usr/bin/env bash\necho -n $(( \"$(inputs.params.a)\" + \"$(inputs.params.b)\" ))\n" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| -> kubectl get tr | |
| NAME SUCCEEDED REASON STARTTIME COMPLETIONTIME | |
| pipelinerun-with-params-final-sum-params-rcz7c True Succeeded 8h 8h | |
| pipelinerun-with-params-sum-params-7sxmn True Succeeded 8h 8h | |
| -> kubectl get tr -o json | |
| { | |
| "apiVersion": "v1", | |
| "items": [ | |
| { | |
| "apiVersion": "tekton.dev/v1beta1", | |
| "kind": "TaskRun", | |
| "metadata": { | |
| "annotations": { | |
| "description": "A simple task that sums the two provided integers\n", | |
| "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"tekton.dev/v1beta1\",\"kind\":\"Task\",\"metadata\":{\"annotations\":{\"description\":\"A simple task that sums the two provided integers\\n\"},\"name\":\"sum-params\",\"namespace\":\"default\"},\"spec\":{\"params\":[{\"default\":\"1\",\"description\":\"The first integer\",\"name\":\"a\",\"type\":\"string\"},{\"default\":\"1\",\"description\":\"The second integer\",\"name\":\"b\",\"type\":\"string\"}],\"steps\":[{\"image\":\"bash:latest\",\"name\":\"sum\",\"script\":\"#!/usr/bin/env bash\\necho -n $(( \\\"$(inputs.params.a)\\\" + \\\"$(inputs.params.b)\\\" ))\\n\"}]}}\n", | |
| "pipeline.tekton.dev/release": "devel" | |
| }, | |
| "creationTimestamp": "2020-07-06T21:50:48Z", | |
| "generation": 1, | |
| "labels": { | |
| "app.kubernetes.io/managed-by": "tekton-pipelines", | |
| "tekton.dev/pipeline": "pipeline-with-params", | |
| "tekton.dev/pipelineRun": "pipelinerun-with-params", | |
| "tekton.dev/pipelineTask": "final-sum-params", | |
| "tekton.dev/task": "sum-params" | |
| }, | |
| "name": "pipelinerun-with-params-final-sum-params-rcz7c", | |
| "namespace": "default", | |
| "ownerReferences": [ | |
| { | |
| "apiVersion": "tekton.dev/v1beta1", | |
| "blockOwnerDeletion": true, | |
| "controller": true, | |
| "kind": "PipelineRun", | |
| "name": "pipelinerun-with-params", | |
| "uid": "ed075ffd-8d66-4d7b-a647-f52ec0ac5c2c" | |
| } | |
| ], | |
| "resourceVersion": "5105796", | |
| "selfLink": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/pipelinerun-with-params-final-sum-params-rcz7c", | |
| "uid": "7509b0a7-52e9-4c92-b54d-78cca95ed532" | |
| }, | |
| "spec": { | |
| "params": [ | |
| { | |
| "name": "a", | |
| "value": "100" | |
| }, | |
| { | |
| "name": "b", | |
| "value": "500" | |
| } | |
| ], | |
| "resources": {}, | |
| "serviceAccountName": "", | |
| "taskRef": { | |
| "kind": "Task", | |
| "name": "sum-params" | |
| }, | |
| "timeout": "1h0m0s" | |
| }, | |
| "status": { | |
| "completionTime": "2020-07-06T21:50:53Z", | |
| "conditions": [ | |
| { | |
| "lastTransitionTime": "2020-07-06T21:50:53Z", | |
| "message": "All Steps have completed executing", | |
| "reason": "Succeeded", | |
| "status": "True", | |
| "type": "Succeeded" | |
| } | |
| ], | |
| "podName": "pipelinerun-with-params-final-sum-params-rcz7c-pod-r7lq4", | |
| "startTime": "2020-07-06T21:50:48Z", | |
| "steps": [ | |
| { | |
| "container": "step-sum", | |
| "imageID": "docker-pullable://bash@sha256:376bd611ec5dfc1248a2d21d921bd62d0b858344ce1516cd133249c0a814387d", | |
| "name": "sum", | |
| "terminated": { | |
| "containerID": "docker://931983ae2b03703f9373349f42417737355aed6aadf5fdee635923af6cd694ff", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:52Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:52Z" | |
| } | |
| } | |
| ], | |
| "taskSpec": { | |
| "params": [ | |
| { | |
| "default": "1", | |
| "description": "The first integer", | |
| "name": "a", | |
| "type": "string" | |
| }, | |
| { | |
| "default": "1", | |
| "description": "The second integer", | |
| "name": "b", | |
| "type": "string" | |
| } | |
| ], | |
| "steps": [ | |
| { | |
| "image": "bash:latest", | |
| "name": "sum", | |
| "resources": {}, | |
| "script": "#!/usr/bin/env bash\necho -n $(( \"$(inputs.params.a)\" + \"$(inputs.params.b)\" ))\n" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "apiVersion": "tekton.dev/v1beta1", | |
| "kind": "TaskRun", | |
| "metadata": { | |
| "annotations": { | |
| "description": "A simple task that sums the two provided integers\n", | |
| "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"tekton.dev/v1beta1\",\"kind\":\"Task\",\"metadata\":{\"annotations\":{\"description\":\"A simple task that sums the two provided integers\\n\"},\"name\":\"sum-params\",\"namespace\":\"default\"},\"spec\":{\"params\":[{\"default\":\"1\",\"description\":\"The first integer\",\"name\":\"a\",\"type\":\"string\"},{\"default\":\"1\",\"description\":\"The second integer\",\"name\":\"b\",\"type\":\"string\"}],\"steps\":[{\"image\":\"bash:latest\",\"name\":\"sum\",\"script\":\"#!/usr/bin/env bash\\necho -n $(( \\\"$(inputs.params.a)\\\" + \\\"$(inputs.params.b)\\\" ))\\n\"}]}}\n", | |
| "pipeline.tekton.dev/release": "devel" | |
| }, | |
| "creationTimestamp": "2020-07-06T21:50:42Z", | |
| "generation": 1, | |
| "labels": { | |
| "app.kubernetes.io/managed-by": "tekton-pipelines", | |
| "tekton.dev/pipeline": "pipeline-with-params", | |
| "tekton.dev/pipelineRun": "pipelinerun-with-params", | |
| "tekton.dev/pipelineTask": "sum-params", | |
| "tekton.dev/task": "sum-params" | |
| }, | |
| "name": "pipelinerun-with-params-sum-params-7sxmn", | |
| "namespace": "default", | |
| "ownerReferences": [ | |
| { | |
| "apiVersion": "tekton.dev/v1beta1", | |
| "blockOwnerDeletion": true, | |
| "controller": true, | |
| "kind": "PipelineRun", | |
| "name": "pipelinerun-with-params", | |
| "uid": "ed075ffd-8d66-4d7b-a647-f52ec0ac5c2c" | |
| } | |
| ], | |
| "resourceVersion": "5105746", | |
| "selfLink": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/pipelinerun-with-params-sum-params-7sxmn", | |
| "uid": "3e309694-e238-4eb2-9141-ff59ce5045a4" | |
| }, | |
| "spec": { | |
| "params": [ | |
| { | |
| "name": "a", | |
| "value": "100" | |
| }, | |
| { | |
| "name": "b", | |
| "value": "500" | |
| } | |
| ], | |
| "resources": {}, | |
| "serviceAccountName": "", | |
| "taskRef": { | |
| "kind": "Task", | |
| "name": "sum-params" | |
| }, | |
| "timeout": "1h0m0s" | |
| }, | |
| "status": { | |
| "completionTime": "2020-07-06T21:50:48Z", | |
| "conditions": [ | |
| { | |
| "lastTransitionTime": "2020-07-06T21:50:48Z", | |
| "message": "All Steps have completed executing", | |
| "reason": "Succeeded", | |
| "status": "True", | |
| "type": "Succeeded" | |
| } | |
| ], | |
| "podName": "pipelinerun-with-params-sum-params-7sxmn-pod-9d24h", | |
| "startTime": "2020-07-06T21:50:42Z", | |
| "steps": [ | |
| { | |
| "container": "step-sum", | |
| "imageID": "docker-pullable://bash@sha256:376bd611ec5dfc1248a2d21d921bd62d0b858344ce1516cd133249c0a814387d", | |
| "name": "sum", | |
| "terminated": { | |
| "containerID": "docker://4c611654592fc95891a7e84c352ac19f07b04672b9e4da6a3b0145719559b676", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:47Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:47Z" | |
| } | |
| } | |
| ], | |
| "taskSpec": { | |
| "params": [ | |
| { | |
| "default": "1", | |
| "description": "The first integer", | |
| "name": "a", | |
| "type": "string" | |
| }, | |
| { | |
| "default": "1", | |
| "description": "The second integer", | |
| "name": "b", | |
| "type": "string" | |
| } | |
| ], | |
| "steps": [ | |
| { | |
| "image": "bash:latest", | |
| "name": "sum", | |
| "resources": {}, | |
| "script": "#!/usr/bin/env bash\necho -n $(( \"$(inputs.params.a)\" + \"$(inputs.params.b)\" ))\n" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| "kind": "List", | |
| "metadata": { | |
| "resourceVersion": "", | |
| "selfLink": "" | |
| } | |
| } | |
| -> kubectl get pods | |
| NAME READY STATUS RESTARTS AGE | |
| pipelinerun-with-params-final-sum-params-rcz7c-pod-r7lq4 0/1 Completed 0 8h | |
| pipelinerun-with-params-sum-params-7sxmn-pod-9d24h 0/1 Completed 0 8h | |
| -> kubectl get pods -o json | |
| { | |
| "apiVersion": "v1", | |
| "items": [ | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Pod", | |
| "metadata": { | |
| "annotations": { | |
| "description": "A simple task that sums the two provided integers\n", | |
| "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"tekton.dev/v1beta1\",\"kind\":\"Task\",\"metadata\":{\"annotations\":{\"description\":\"A simple task that sums the two provided integers\\n\"},\"name\":\"sum-params\",\"namespace\":\"default\"},\"spec\":{\"params\":[{\"default\":\"1\",\"description\":\"The first integer\",\"name\":\"a\",\"type\":\"string\"},{\"default\":\"1\",\"description\":\"The second integer\",\"name\":\"b\",\"type\":\"string\"}],\"steps\":[{\"image\":\"bash:latest\",\"name\":\"sum\",\"script\":\"#!/usr/bin/env bash\\necho -n $(( \\\"$(inputs.params.a)\\\" + \\\"$(inputs.params.b)\\\" ))\\n\"}]}}\n", | |
| "pipeline.tekton.dev/release": "devel", | |
| "tekton.dev/ready": "READY" | |
| }, | |
| "creationTimestamp": "2020-07-06T21:50:48Z", | |
| "labels": { | |
| "app.kubernetes.io/managed-by": "tekton-pipelines", | |
| "tekton.dev/pipeline": "pipeline-with-params", | |
| "tekton.dev/pipelineRun": "pipelinerun-with-params", | |
| "tekton.dev/pipelineTask": "final-sum-params", | |
| "tekton.dev/task": "sum-params", | |
| "tekton.dev/taskRun": "pipelinerun-with-params-final-sum-params-rcz7c" | |
| }, | |
| "name": "pipelinerun-with-params-final-sum-params-rcz7c-pod-r7lq4", | |
| "namespace": "default", | |
| "ownerReferences": [ | |
| { | |
| "apiVersion": "tekton.dev/v1beta1", | |
| "blockOwnerDeletion": true, | |
| "controller": true, | |
| "kind": "TaskRun", | |
| "name": "pipelinerun-with-params-final-sum-params-rcz7c", | |
| "uid": "7509b0a7-52e9-4c92-b54d-78cca95ed532" | |
| } | |
| ], | |
| "resourceVersion": "5105794", | |
| "selfLink": "/api/v1/namespaces/default/pods/pipelinerun-with-params-final-sum-params-rcz7c-pod-r7lq4", | |
| "uid": "48d6ff2a-91a8-4e4e-89ed-4086b68c1f0b" | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "args": [ | |
| "-wait_file", | |
| "/tekton/downward/ready", | |
| "-wait_file_content", | |
| "-post_file", | |
| "/tekton/tools/0", | |
| "-termination_path", | |
| "/tekton/termination", | |
| "-entrypoint", | |
| "/tekton/scripts/script-0-z8f2z", | |
| "--" | |
| ], | |
| "command": [ | |
| "/tekton/tools/entrypoint" | |
| ], | |
| "env": [ | |
| { | |
| "name": "HOME", | |
| "value": "/tekton/home" | |
| } | |
| ], | |
| "image": "bash:latest", | |
| "imagePullPolicy": "Always", | |
| "name": "step-sum", | |
| "resources": { | |
| "requests": { | |
| "cpu": "0", | |
| "ephemeral-storage": "0", | |
| "memory": "0" | |
| } | |
| }, | |
| "terminationMessagePath": "/tekton/termination", | |
| "terminationMessagePolicy": "File", | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/tekton/scripts", | |
| "name": "tekton-internal-scripts" | |
| }, | |
| { | |
| "mountPath": "/tekton/tools", | |
| "name": "tekton-internal-tools" | |
| }, | |
| { | |
| "mountPath": "/tekton/downward", | |
| "name": "tekton-internal-downward" | |
| }, | |
| { | |
| "mountPath": "/tekton/creds", | |
| "name": "tekton-creds-init-home-dg26k" | |
| }, | |
| { | |
| "mountPath": "/workspace", | |
| "name": "tekton-internal-workspace" | |
| }, | |
| { | |
| "mountPath": "/tekton/home", | |
| "name": "tekton-internal-home" | |
| }, | |
| { | |
| "mountPath": "/tekton/results", | |
| "name": "tekton-internal-results" | |
| }, | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "default-token-8bljx", | |
| "readOnly": true | |
| } | |
| ], | |
| "workingDir": "/workspace" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "enableServiceLinks": true, | |
| "initContainers": [ | |
| { | |
| "args": [ | |
| "-c", | |
| "tmpfile=\"/tekton/scripts/script-0-z8f2z\"\ntouch ${tmpfile} \u0026\u0026 chmod +x ${tmpfile}\ncat \u003e ${tmpfile} \u003c\u003c 'script-heredoc-randomly-generated-zbxg2'\n#!/usr/bin/env bash\necho -n $(( \"100\" + \"500\" ))\n\nscript-heredoc-randomly-generated-zbxg2\n" | |
| ], | |
| "command": [ | |
| "sh" | |
| ], | |
| "image": "gcr.io/distroless/base@sha256:f79e093f9ba639c957ee857b1ad57ae5046c328998bf8f72b30081db4d8edbe4", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "place-scripts", | |
| "resources": {}, | |
| "terminationMessagePath": "/dev/termination-log", | |
| "terminationMessagePolicy": "File", | |
| "tty": true, | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/tekton/scripts", | |
| "name": "tekton-internal-scripts" | |
| }, | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "default-token-8bljx", | |
| "readOnly": true | |
| } | |
| ] | |
| }, | |
| { | |
| "command": [ | |
| "cp", | |
| "/ko-app/entrypoint", | |
| "/tekton/tools/entrypoint" | |
| ], | |
| "image": "docker.io/pritidesai/entrypoint-bff0a22da108bc2f16c818c97641a296@sha256:ac8157892e8e031141c971b409ef8114ee7dbb01b092b226dffbe43e64cb0dbc", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "place-tools", | |
| "resources": {}, | |
| "terminationMessagePath": "/dev/termination-log", | |
| "terminationMessagePolicy": "File", | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/tekton/tools", | |
| "name": "tekton-internal-tools" | |
| }, | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "default-token-8bljx", | |
| "readOnly": true | |
| } | |
| ] | |
| } | |
| ], | |
| "nodeName": "docker-desktop", | |
| "priority": 0, | |
| "restartPolicy": "Never", | |
| "schedulerName": "default-scheduler", | |
| "securityContext": {}, | |
| "serviceAccount": "default", | |
| "serviceAccountName": "default", | |
| "terminationGracePeriodSeconds": 30, | |
| "tolerations": [ | |
| { | |
| "effect": "NoExecute", | |
| "key": "node.kubernetes.io/not-ready", | |
| "operator": "Exists", | |
| "tolerationSeconds": 300 | |
| }, | |
| { | |
| "effect": "NoExecute", | |
| "key": "node.kubernetes.io/unreachable", | |
| "operator": "Exists", | |
| "tolerationSeconds": 300 | |
| } | |
| ], | |
| "volumes": [ | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-workspace" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-home" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-results" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-scripts" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-tools" | |
| }, | |
| { | |
| "downwardAPI": { | |
| "defaultMode": 420, | |
| "items": [ | |
| { | |
| "fieldRef": { | |
| "apiVersion": "v1", | |
| "fieldPath": "metadata.annotations['tekton.dev/ready']" | |
| }, | |
| "path": "ready" | |
| } | |
| ] | |
| }, | |
| "name": "tekton-internal-downward" | |
| }, | |
| { | |
| "emptyDir": { | |
| "medium": "Memory" | |
| }, | |
| "name": "tekton-creds-init-home-dg26k" | |
| }, | |
| { | |
| "name": "default-token-8bljx", | |
| "secret": { | |
| "defaultMode": 420, | |
| "secretName": "default-token-8bljx" | |
| } | |
| } | |
| ] | |
| }, | |
| "status": { | |
| "conditions": [ | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:50Z", | |
| "reason": "PodCompleted", | |
| "status": "True", | |
| "type": "Initialized" | |
| }, | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:53Z", | |
| "reason": "PodCompleted", | |
| "status": "False", | |
| "type": "Ready" | |
| }, | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:53Z", | |
| "reason": "PodCompleted", | |
| "status": "False", | |
| "type": "ContainersReady" | |
| }, | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:48Z", | |
| "status": "True", | |
| "type": "PodScheduled" | |
| } | |
| ], | |
| "containerStatuses": [ | |
| { | |
| "containerID": "docker://931983ae2b03703f9373349f42417737355aed6aadf5fdee635923af6cd694ff", | |
| "image": "bash:latest", | |
| "imageID": "docker-pullable://bash@sha256:376bd611ec5dfc1248a2d21d921bd62d0b858344ce1516cd133249c0a814387d", | |
| "lastState": {}, | |
| "name": "step-sum", | |
| "ready": false, | |
| "restartCount": 0, | |
| "state": { | |
| "terminated": { | |
| "containerID": "docker://931983ae2b03703f9373349f42417737355aed6aadf5fdee635923af6cd694ff", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:52Z", | |
| "message": "[{\"key\":\"StartedAt\",\"value\":\"2020-07-06T21:50:52.875Z\",\"resourceRef\":{}}]", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:51Z" | |
| } | |
| } | |
| } | |
| ], | |
| "hostIP": "192.168.65.3", | |
| "initContainerStatuses": [ | |
| { | |
| "containerID": "docker://acaebde1839f9d499652b42b6b369985aff017c72e46369b084f0ee4f46687b7", | |
| "image": "sha256:4a6f2dfa03471bdef939c3946c8f657a0c7dc69a1d0fe7042c8af8084762dde0", | |
| "imageID": "docker-pullable://gcr.io/distroless/base@sha256:f79e093f9ba639c957ee857b1ad57ae5046c328998bf8f72b30081db4d8edbe4", | |
| "lastState": {}, | |
| "name": "place-scripts", | |
| "ready": true, | |
| "restartCount": 0, | |
| "state": { | |
| "terminated": { | |
| "containerID": "docker://acaebde1839f9d499652b42b6b369985aff017c72e46369b084f0ee4f46687b7", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:48Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:48Z" | |
| } | |
| } | |
| }, | |
| { | |
| "containerID": "docker://7629d087095d38e8c762d92e9b1f8996728e566705330d3e109b7d95906ed3df", | |
| "image": "sha256:a0758dfa12608549b7f3b2dc9628896ae324be26c74d6927c4d68697f9b6f6c5", | |
| "imageID": "docker-pullable://pritidesai/entrypoint-bff0a22da108bc2f16c818c97641a296@sha256:ac8157892e8e031141c971b409ef8114ee7dbb01b092b226dffbe43e64cb0dbc", | |
| "lastState": {}, | |
| "name": "place-tools", | |
| "ready": true, | |
| "restartCount": 0, | |
| "state": { | |
| "terminated": { | |
| "containerID": "docker://7629d087095d38e8c762d92e9b1f8996728e566705330d3e109b7d95906ed3df", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:49Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:49Z" | |
| } | |
| } | |
| } | |
| ], | |
| "phase": "Succeeded", | |
| "podIP": "10.1.39.245", | |
| "qosClass": "BestEffort", | |
| "startTime": "2020-07-06T21:50:48Z" | |
| } | |
| }, | |
| { | |
| "apiVersion": "v1", | |
| "kind": "Pod", | |
| "metadata": { | |
| "annotations": { | |
| "description": "A simple task that sums the two provided integers\n", | |
| "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"tekton.dev/v1beta1\",\"kind\":\"Task\",\"metadata\":{\"annotations\":{\"description\":\"A simple task that sums the two provided integers\\n\"},\"name\":\"sum-params\",\"namespace\":\"default\"},\"spec\":{\"params\":[{\"default\":\"1\",\"description\":\"The first integer\",\"name\":\"a\",\"type\":\"string\"},{\"default\":\"1\",\"description\":\"The second integer\",\"name\":\"b\",\"type\":\"string\"}],\"steps\":[{\"image\":\"bash:latest\",\"name\":\"sum\",\"script\":\"#!/usr/bin/env bash\\necho -n $(( \\\"$(inputs.params.a)\\\" + \\\"$(inputs.params.b)\\\" ))\\n\"}]}}\n", | |
| "pipeline.tekton.dev/release": "devel", | |
| "tekton.dev/ready": "READY" | |
| }, | |
| "creationTimestamp": "2020-07-06T21:50:42Z", | |
| "labels": { | |
| "app.kubernetes.io/managed-by": "tekton-pipelines", | |
| "tekton.dev/pipeline": "pipeline-with-params", | |
| "tekton.dev/pipelineRun": "pipelinerun-with-params", | |
| "tekton.dev/pipelineTask": "sum-params", | |
| "tekton.dev/task": "sum-params", | |
| "tekton.dev/taskRun": "pipelinerun-with-params-sum-params-7sxmn" | |
| }, | |
| "name": "pipelinerun-with-params-sum-params-7sxmn-pod-9d24h", | |
| "namespace": "default", | |
| "ownerReferences": [ | |
| { | |
| "apiVersion": "tekton.dev/v1beta1", | |
| "blockOwnerDeletion": true, | |
| "controller": true, | |
| "kind": "TaskRun", | |
| "name": "pipelinerun-with-params-sum-params-7sxmn", | |
| "uid": "3e309694-e238-4eb2-9141-ff59ce5045a4" | |
| } | |
| ], | |
| "resourceVersion": "5105744", | |
| "selfLink": "/api/v1/namespaces/default/pods/pipelinerun-with-params-sum-params-7sxmn-pod-9d24h", | |
| "uid": "c822fcd5-1a86-4476-8a95-ad686f313bbb" | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "args": [ | |
| "-wait_file", | |
| "/tekton/downward/ready", | |
| "-wait_file_content", | |
| "-post_file", | |
| "/tekton/tools/0", | |
| "-termination_path", | |
| "/tekton/termination", | |
| "-entrypoint", | |
| "/tekton/scripts/script-0-vhdqh", | |
| "--" | |
| ], | |
| "command": [ | |
| "/tekton/tools/entrypoint" | |
| ], | |
| "env": [ | |
| { | |
| "name": "HOME", | |
| "value": "/tekton/home" | |
| } | |
| ], | |
| "image": "bash:latest", | |
| "imagePullPolicy": "Always", | |
| "name": "step-sum", | |
| "resources": { | |
| "requests": { | |
| "cpu": "0", | |
| "ephemeral-storage": "0", | |
| "memory": "0" | |
| } | |
| }, | |
| "terminationMessagePath": "/tekton/termination", | |
| "terminationMessagePolicy": "File", | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/tekton/scripts", | |
| "name": "tekton-internal-scripts" | |
| }, | |
| { | |
| "mountPath": "/tekton/tools", | |
| "name": "tekton-internal-tools" | |
| }, | |
| { | |
| "mountPath": "/tekton/downward", | |
| "name": "tekton-internal-downward" | |
| }, | |
| { | |
| "mountPath": "/tekton/creds", | |
| "name": "tekton-creds-init-home-j2d2z" | |
| }, | |
| { | |
| "mountPath": "/workspace", | |
| "name": "tekton-internal-workspace" | |
| }, | |
| { | |
| "mountPath": "/tekton/home", | |
| "name": "tekton-internal-home" | |
| }, | |
| { | |
| "mountPath": "/tekton/results", | |
| "name": "tekton-internal-results" | |
| }, | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "default-token-8bljx", | |
| "readOnly": true | |
| } | |
| ], | |
| "workingDir": "/workspace" | |
| } | |
| ], | |
| "dnsPolicy": "ClusterFirst", | |
| "enableServiceLinks": true, | |
| "initContainers": [ | |
| { | |
| "args": [ | |
| "-c", | |
| "tmpfile=\"/tekton/scripts/script-0-vhdqh\"\ntouch ${tmpfile} \u0026\u0026 chmod +x ${tmpfile}\ncat \u003e ${tmpfile} \u003c\u003c 'script-heredoc-randomly-generated-p97xw'\n#!/usr/bin/env bash\necho -n $(( \"100\" + \"500\" ))\n\nscript-heredoc-randomly-generated-p97xw\n" | |
| ], | |
| "command": [ | |
| "sh" | |
| ], | |
| "image": "gcr.io/distroless/base@sha256:f79e093f9ba639c957ee857b1ad57ae5046c328998bf8f72b30081db4d8edbe4", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "place-scripts", | |
| "resources": {}, | |
| "terminationMessagePath": "/dev/termination-log", | |
| "terminationMessagePolicy": "File", | |
| "tty": true, | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/tekton/scripts", | |
| "name": "tekton-internal-scripts" | |
| }, | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "default-token-8bljx", | |
| "readOnly": true | |
| } | |
| ] | |
| }, | |
| { | |
| "command": [ | |
| "cp", | |
| "/ko-app/entrypoint", | |
| "/tekton/tools/entrypoint" | |
| ], | |
| "image": "docker.io/pritidesai/entrypoint-bff0a22da108bc2f16c818c97641a296@sha256:ac8157892e8e031141c971b409ef8114ee7dbb01b092b226dffbe43e64cb0dbc", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "place-tools", | |
| "resources": {}, | |
| "terminationMessagePath": "/dev/termination-log", | |
| "terminationMessagePolicy": "File", | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/tekton/tools", | |
| "name": "tekton-internal-tools" | |
| }, | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "default-token-8bljx", | |
| "readOnly": true | |
| } | |
| ] | |
| } | |
| ], | |
| "nodeName": "docker-desktop", | |
| "priority": 0, | |
| "restartPolicy": "Never", | |
| "schedulerName": "default-scheduler", | |
| "securityContext": {}, | |
| "serviceAccount": "default", | |
| "serviceAccountName": "default", | |
| "terminationGracePeriodSeconds": 30, | |
| "tolerations": [ | |
| { | |
| "effect": "NoExecute", | |
| "key": "node.kubernetes.io/not-ready", | |
| "operator": "Exists", | |
| "tolerationSeconds": 300 | |
| }, | |
| { | |
| "effect": "NoExecute", | |
| "key": "node.kubernetes.io/unreachable", | |
| "operator": "Exists", | |
| "tolerationSeconds": 300 | |
| } | |
| ], | |
| "volumes": [ | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-workspace" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-home" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-results" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-scripts" | |
| }, | |
| { | |
| "emptyDir": {}, | |
| "name": "tekton-internal-tools" | |
| }, | |
| { | |
| "downwardAPI": { | |
| "defaultMode": 420, | |
| "items": [ | |
| { | |
| "fieldRef": { | |
| "apiVersion": "v1", | |
| "fieldPath": "metadata.annotations['tekton.dev/ready']" | |
| }, | |
| "path": "ready" | |
| } | |
| ] | |
| }, | |
| "name": "tekton-internal-downward" | |
| }, | |
| { | |
| "emptyDir": { | |
| "medium": "Memory" | |
| }, | |
| "name": "tekton-creds-init-home-j2d2z" | |
| }, | |
| { | |
| "name": "default-token-8bljx", | |
| "secret": { | |
| "defaultMode": 420, | |
| "secretName": "default-token-8bljx" | |
| } | |
| } | |
| ] | |
| }, | |
| "status": { | |
| "conditions": [ | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:45Z", | |
| "reason": "PodCompleted", | |
| "status": "True", | |
| "type": "Initialized" | |
| }, | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:48Z", | |
| "reason": "PodCompleted", | |
| "status": "False", | |
| "type": "Ready" | |
| }, | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:48Z", | |
| "reason": "PodCompleted", | |
| "status": "False", | |
| "type": "ContainersReady" | |
| }, | |
| { | |
| "lastProbeTime": null, | |
| "lastTransitionTime": "2020-07-06T21:50:42Z", | |
| "status": "True", | |
| "type": "PodScheduled" | |
| } | |
| ], | |
| "containerStatuses": [ | |
| { | |
| "containerID": "docker://4c611654592fc95891a7e84c352ac19f07b04672b9e4da6a3b0145719559b676", | |
| "image": "bash:latest", | |
| "imageID": "docker-pullable://bash@sha256:376bd611ec5dfc1248a2d21d921bd62d0b858344ce1516cd133249c0a814387d", | |
| "lastState": {}, | |
| "name": "step-sum", | |
| "ready": false, | |
| "restartCount": 0, | |
| "state": { | |
| "terminated": { | |
| "containerID": "docker://4c611654592fc95891a7e84c352ac19f07b04672b9e4da6a3b0145719559b676", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:47Z", | |
| "message": "[{\"key\":\"StartedAt\",\"value\":\"2020-07-06T21:50:47.860Z\",\"resourceRef\":{}}]", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:46Z" | |
| } | |
| } | |
| } | |
| ], | |
| "hostIP": "192.168.65.3", | |
| "initContainerStatuses": [ | |
| { | |
| "containerID": "docker://da636d4b944bc837fc26a3cd6ba4dd20b6e505129b9921131e5120677e3484b1", | |
| "image": "sha256:4a6f2dfa03471bdef939c3946c8f657a0c7dc69a1d0fe7042c8af8084762dde0", | |
| "imageID": "docker-pullable://gcr.io/distroless/base@sha256:f79e093f9ba639c957ee857b1ad57ae5046c328998bf8f72b30081db4d8edbe4", | |
| "lastState": {}, | |
| "name": "place-scripts", | |
| "ready": true, | |
| "restartCount": 0, | |
| "state": { | |
| "terminated": { | |
| "containerID": "docker://da636d4b944bc837fc26a3cd6ba4dd20b6e505129b9921131e5120677e3484b1", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:42Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:42Z" | |
| } | |
| } | |
| }, | |
| { | |
| "containerID": "docker://1d29e1b494464a4d1797133ecb1d5c1a4b9e482d26786bb257abf80f9219ba8f", | |
| "image": "sha256:a0758dfa12608549b7f3b2dc9628896ae324be26c74d6927c4d68697f9b6f6c5", | |
| "imageID": "docker-pullable://pritidesai/entrypoint-bff0a22da108bc2f16c818c97641a296@sha256:ac8157892e8e031141c971b409ef8114ee7dbb01b092b226dffbe43e64cb0dbc", | |
| "lastState": {}, | |
| "name": "place-tools", | |
| "ready": true, | |
| "restartCount": 0, | |
| "state": { | |
| "terminated": { | |
| "containerID": "docker://1d29e1b494464a4d1797133ecb1d5c1a4b9e482d26786bb257abf80f9219ba8f", | |
| "exitCode": 0, | |
| "finishedAt": "2020-07-06T21:50:44Z", | |
| "reason": "Completed", | |
| "startedAt": "2020-07-06T21:50:44Z" | |
| } | |
| } | |
| } | |
| ], | |
| "phase": "Succeeded", | |
| "podIP": "10.1.39.244", | |
| "qosClass": "BestEffort", | |
| "startTime": "2020-07-06T21:50:42Z" | |
| } | |
| } | |
| ], | |
| "kind": "List", | |
| "metadata": { | |
| "resourceVersion": "", | |
| "selfLink": "" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment