Last active
          March 28, 2023 13:13 
        
      - 
      
- 
        Save vdemeester/fbca2bd39fb55966b460863cc85d8cf5 to your computer and use it in GitHub Desktop. 
Revisions
- 
        vdemeester revised this gist Mar 28, 2023 . 1 changed file with 56 additions and 66 deletions.There are no files selected for viewing
- 
        vdemeester revised this gist Mar 28, 2023 . 1 changed file with 67 additions and 10 deletions.There are no files selected for viewing
- 
        vdemeester created this gist Mar 28, 2023 .There are no files selected for viewingThis 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ {"severity":"info","timestamp":"2023-03-28T12:55:20.751Z","logger":"tekton-pipelines-webhook","caller":"webhook/admission.go:151","message":"remote admission controller audit annotations=map[string]string(nil)","commit":"0e9e4b9-dirty","knative.dev/kind":"tekton.dev/v1, Kind=PipelineRun","knative.dev/namespace":"default","knative.dev/name":"demo-pipeline-run-1","knative.dev/operation":"UPDATE","knative.dev/resource":"tekton.dev/v1, Resource=pipelineruns","knative.dev/subresource":"","knative.dev/userinfo":"kubernetes-admin","admissionreview/uid":"e0d751e2-6f7e-4db5-8590-a61cc0aece68","admissionreview/allowed":true,"admissionreview/result":"nil"} {"severity":"info","timestamp":"2023-03-28T12:55:20.752Z","logger":"tekton-pipelines-webhook","caller":"webhook/admission.go:93","message":"Webhook ServeHTTP request=&http.Request{Method:\"POST\", URL:(*url.URL)(0xc000189ef0), Proto:\"HTTP/1.1\", ProtoMajor:1, ProtoMinor:1, Header:http.Header{\"Accept\":[]string{\"application/json, */*\"}, \"Accept-Encoding\":[]string{\"gzip\"}, \"Content-Length\":[]string{\"54328\"}, \"Content-Type\":[]string{\"application/json\"}, \"User-Agent\":[]string{\"kube-apiserver-admission\"}}, Body:(*http.body)(0xc000be16c0), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:54328, TransferEncoding:[]string(nil), Close:false, Host:\"tekton-pipelines-webhook.tekton-pipelines.svc:443\", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:\"10.244.0.1:6780\", RequestURI:\"/resource-validation?timeout=10s\", TLS:(*tls.ConnectionState)(0xc000794000), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.cancelCtx)(0xc000be1700)}","commit":"0e9e4b9-dirty"} {"severity":"info","timestamp":"2023-03-28T12:55:20.754Z","logger":"tekton-pipelines-webhook","caller":"webhook/admission.go:151","message":"remote admission controller audit annotations=map[string]string(nil)","commit":"0e9e4b9-dirty","knative.dev/kind":"tekton.dev/v1, Kind=PipelineRun","knative.dev/namespace":"default","knative.dev/name":"demo-pipeline-run-1","knative.dev/operation":"UPDATE","knative.dev/resource":"tekton.dev/v1, Resource=pipelineruns","knative.dev/subresource":"","knative.dev/userinfo":"kubernetes-admin","admissionreview/uid":"391c0266-7f18-4870-8f8d-5758a2235951","admissionreview/allowed":true,"admissionreview/result":"nil"} {"severity":"info","timestamp":"2023-03-28T12:55:20.755Z","logger":"tekton-pipelines-webhook","caller":"webhook/conversion.go:45","message":"Webhook ServeHTTP request=&http.Request{Method:\"POST\", URL:(*url.URL)(0xc00095c1b0), Proto:\"HTTP/1.1\", ProtoMajor:1, ProtoMinor:1, Header:http.Header{\"Accept\":[]string{\"application/json, */*\"}, \"Accept-Encoding\":[]string{\"gzip\"}, \"Content-Length\":[]string{\"27135\"}, \"Content-Type\":[]string{\"application/json\"}, \"User-Agent\":[]string{\"kube-apiserver-admission\"}}, Body:(*http.body)(0xc000be0000), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:27135, TransferEncoding:[]string(nil), Close:false, Host:\"tekton-pipelines-webhook.tekton-pipelines.svc:443\", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:\"10.244.0.1:23619\", RequestURI:\"/resource-conversion?timeout=30s\", TLS:(*tls.ConnectionState)(0xc00015e370), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.cancelCtx)(0xc000be0040)}","commit":"0e9e4b9-dirty"} -------------------------------- Source &{{PipelineRun tekton.dev/v1} {demo-pipeline-run-1 default efdc375d-8c2e-4e02-aa9c-268ba073f1d0 1 2023-03-28 12:53:31 +0000 UTC <nil> <nil> map[tekton.dev/pipeline:demo.pipeline] map[foo:bar tekton.dev/v1beta1TaskRuns:{"demo-pipeline-run-1-build-skaffold-app":{"pipelineTaskName":"build-skaffold-app","status":{"conditions":[{"type":"Succeeded","status":"False","lastTransitionTime":"2023-03-28T12:54:00Z","reason":"Failed","message":"\"step-build-and-push\" exited with code 1 (image: \"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650\"); for logs run: kubectl -n default logs demo-pipeline-run-1-build-skaffold-app-pod -c step-build-and-push\n"}],"podName":"demo-pipeline-run-1-build-skaffold-app-pod","startTime":"2023-03-28T12:53:50Z","completionTime":"2023-03-28T12:54:00Z","steps":[{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:57Z","finishedAt":"2023-03-28T12:53:58Z","containerID":"containerd://a2eca6655be687c8e0c5164566c847abd34521f7fede1c05e28647cf1d315d02"},"name":"build-and-push","container":"step-build-and-push","imageID":"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:58Z","finishedAt":"2023-03-28T12:53:58Z","containerID":"containerd://9513ad68d25d50940934b430f29387b7ff058e961b97fad2e34b9a407b9494cc"},"name":"write-digest","container":"step-write-digest","imageID":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter@sha256:80d09ba9f2aa293a0d4b93ff44a56d6cbeb7669cf4108b63d8a3a94c0b446509"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:59Z","finishedAt":"2023-03-28T12:53:59Z","containerID":"containerd://25485fbcd44b4239e53812f708c5d0c801a982daf260eb74464b1eb6218467bb"},"name":"digest-to-results","container":"step-digest-to-results","imageID":"sha256:347be09212d543b6b4b1be11bbc1fb7c9574ae2067f355bc3950673578b4f590"}],"taskSpec":{"params":[{"name":"IMAGE","type":"string","description":"Name (reference) of the image to build."},{"name":"DOCKERFILE","type":"string","description":"Path to the Dockerfile to build.","default":"./Dockerfile"},{"name":"CONTEXT","type":"string","description":"The build context used by Kaniko.","default":"./"},{"name":"EXTRA_ARGS","type":"string","default":""},{"name":"BUILDER_IMAGE","type":"string","description":"The image on which builds will run","default":"gcr.io/kaniko-project/executor:v1.8.1"},{"name":"baseImage","type":"string","description":"Base image for GoogleContainerTools/skaffold microservice apps","default":"BASE=alpine:3.9"}],"steps":[{"name":"build-and-push","image":"gcr.io/kaniko-project/executor:v1.8.1","command":["/kaniko/executor","","--dockerfile=/workspace/source/examples/microservices/leeroy-app/Dockerfile","--context=/workspace/source/examples/microservices/leeroy-app","--destination=gcr.io/christiewilson-catfactory/leeroy-app","--oci-layout-path=/workspace/source/examples/microservices/leeroy-app/image-digest","--build-arg=BASE=alpine:3.9","--ignore-path=/product_uuid"],"workingDir":"/workspace/source","env":[{"name":"DOCKER_CONFIG","value":"/tekton/home/.docker"}],"resources":{},"securityContext":{"runAsUser":0}},{"name":"write-digest","image":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter:latest","command":["/ko-app/imagedigestexporter"],"args":["-images=[{\"name\":\"gcr.io/christiewilson-catfactory/leeroy-app\",\"type\":\"image\",\"url\":\"gcr.io/christiewilson-catfactory/leeroy-app\",\"digest\":\"\",\"OutputImageDir\":\"/workspace/source/examples/microservices/leeroy-app/image-digest\"}]","-terminationMessagePath=examples/microservices/leeroy-app/image-digested"],"workingDir":"/workspace/source","resources":{},"securityContext":{"runAsUser":0}},{"name":"digest-to-results","image":"stedolan/jq","workingDir":"/workspace/source","resources":{},"script":"cat examples/microservices/leeroy-app/image-digested | jq '.[0].value' -rj | tee /tekton/results/IMAGE_DIGEST\n"}],"workspaces":[{"name":"source"}],"results":[{"name":"IMAGE_DIGEST","type":"string","description":"Digest of the image just built."}]}}},"demo-pipeline-run-1-build-skaffold-web":{"pipelineTaskName":"build-skaffold-web","status":{"conditions":[{"type":"Succeeded","status":"False","lastTransitionTime":"2023-03-28T12:54:01Z","reason":"Failed","message":"\"step-build-and-push\" exited with code 1 (image: \"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650\"); for logs run: kubectl -n default logs demo-pipeline-run-1-build-skaffold-web-pod -c step-build-and-push\n"}],"podName":"demo-pipeline-run-1-build-skaffold-web-pod","startTime":"2023-03-28T12:53:50Z","completionTime":"2023-03-28T12:54:01Z","steps":[{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:59Z","finishedAt":"2023-03-28T12:54:00Z","containerID":"containerd://3f7862ecf04f45b1209befcb2e1d033450aadbe8a1edf0345fa371bd58195f70"},"name":"build-and-push","container":"step-build-and-push","imageID":"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:54:00Z","finishedAt":"2023-03-28T12:54:00Z","containerID":"containerd://b2a60c73c0f1ef94dd19e5ff61dc18fcb7ba761edc6efb672c4c47b76b4e359a"},"name":"write-digest","container":"step-write-digest","imageID":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter@sha256:80d09ba9f2aa293a0d4b93ff44a56d6cbeb7669cf4108b63d8a3a94c0b446509"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:54:00Z","finishedAt":"2023-03-28T12:54:00Z","containerID":"containerd://e9fc96baa4f7b4441ec6aef5dd0de85c3e984e521dffe77fb1a361c1c8983495"},"name":"digest-to-results","container":"step-digest-to-results","imageID":"sha256:347be09212d543b6b4b1be11bbc1fb7c9574ae2067f355bc3950673578b4f590"}],"taskSpec":{"params":[{"name":"IMAGE","type":"string","description":"Name (reference) of the image to build."},{"name":"DOCKERFILE","type":"string","description":"Path to the Dockerfile to build.","default":"./Dockerfile"},{"name":"CONTEXT","type":"string","description":"The build context used by Kaniko.","default":"./"},{"name":"EXTRA_ARGS","type":"string","default":""},{"name":"BUILDER_IMAGE","type":"string","description":"The image on which builds will run","default":"gcr.io/kaniko-project/executor:v1.8.1"},{"name":"baseImage","type":"string","description":"Base image for GoogleContainerTools/skaffold microservice apps","default":"BASE=alpine:3.9"}],"steps":[{"name":"build-and-push","image":"gcr.io/kaniko-project/executor:v1.8.1","command":["/kaniko/executor","","--dockerfile=/workspace/source/examples/microservices/leeroy-web/Dockerfile","--context=/workspace/source/examples/microservices/leeroy-web","--destination=gcr.io/christiewilson-catfactory/leeroy-web","--oci-layout-path=/workspace/source/examples/microservices/leeroy-web/image-digest","--build-arg=BASE=alpine:3.9","--ignore-path=/product_uuid"],"workingDir":"/workspace/source","env":[{"name":"DOCKER_CONFIG","value":"/tekton/home/.docker"}],"resources":{},"securityContext":{"runAsUser":0}},{"name":"write-digest","image":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter:latest","command":["/ko-app/imagedigestexporter"],"args":["-images=[{\"name\":\"gcr.io/christiewilson-catfactory/leeroy-web\",\"type\":\"image\",\"url\":\"gcr.io/christiewilson-catfactory/leeroy-web\",\"digest\":\"\",\"OutputImageDir\":\"/workspace/source/examples/microservices/leeroy-web/image-digest\"}]","-terminationMessagePath=examples/microservices/leeroy-web/image-digested"],"workingDir":"/workspace/source","resources":{},"securityContext":{"runAsUser":0}},{"name":"digest-to-results","image":"stedolan/jq","workingDir":"/workspace/source","resources":{},"script":"cat examples/microservices/leeroy-web/image-digested | jq '.[0].value' -rj | tee /tekton/results/IMAGE_DIGEST\n"}],"workspaces":[{"name":"source"}],"results":[{"name":"IMAGE_DIGEST","type":"string","description":"Digest of the image just built."}]}}},"demo-pipeline-run-1-fetch-from-git":{"pipelineTaskName":"fetch-from-git","status":{"conditions":[{"type":"Succeeded","status":"True","lastTransitionTime":"2023-03-28T12:53:44Z","reason":"Succeeded","message":"All Steps have completed executing"}],"podName":"demo-pipeline-run-1-fetch-from-git-pod","startTime":"2023-03-28T12:53:31Z","completionTime":"2023-03-28T12:53:44Z","steps":[{"terminated":{"exitCode":0,"reason":"Completed","message":"[{\"key\":\"commit\",\"value\":\"edd1d458902d64e51e17b83514e1fc693c248259\",\"type\":1},{\"key\":\"committer-date\",\"value\":\"1631736966\",\"type\":1},{\"key\":\"url\",\"value\":\"https://github.com/GoogleContainerTools/skaffold\",\"type\":1}]","startedAt":"2023-03-28T12:53:39Z","finishedAt":"2023-03-28T12:53:43Z","containerID":"containerd://012ced0215db70d04a8e0df700ee1a4cfdafa583c53cb0d57f4d96bf5c7de21a"},"name":"clone","container":"step-clone","imageID":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init@sha256:28ff94e63e4058afc3f15b4c11c08cf3b54fa91faa646a4bbac90380cd7158df"}],"taskResults":[{"name":"commit","type":"string","value":"edd1d458902d64e51e17b83514e1fc693c248259"},{"name":"committer-date","type":"string","value":"1631736966"},{"name":"url","type":"string","value":"https://github.com/GoogleContainerTools/skaffold"}],"taskSpec":{"params":[{"name":"url","type":"string","description":"Repository URL to clone from."},{"name":"revision","type":"string","description":"Revision to checkout. (branch, tag, sha, ref, etc...)","default":""},{"name":"refspec","type":"string","description":"Refspec to fetch before checking out revision.","default":""},{"name":"submodules","type":"string","description":"Initialize and fetch git submodules.","default":"true"},{"name":"depth","type":"string","description":"Perform a shallow clone, fetching only the most recent N commits.","default":"1"},{"name":"sslVerify","type":"string","description":"Set the `http.sslVerify` global git config. Setting this to `false` is not advised unless you are sure that you trust your git remote.","default":"true"},{"name":"crtFileName","type":"string","description":"file name of mounted crt using ssl-ca-directory workspace. default value is ca-bundle.crt.","default":"ca-bundle.crt"},{"name":"subdirectory","type":"string","description":"Subdirectory inside the `output` Workspace to clone the repo into.","default":""},{"name":"sparseCheckoutDirectories","type":"string","description":"Define the directory patterns to match or exclude when performing a sparse checkout.","default":""},{"name":"deleteExisting","type":"string","description":"Clean out the contents of the destination directory if it already exists before cloning.","default":"true"},{"name":"httpProxy","type":"string","description":"HTTP proxy server for non-SSL requests.","default":""},{"name":"httpsProxy","type":"string","description":"HTTPS proxy server for SSL requests.","default":""},{"name":"noProxy","type":"string","description":"Opt out of proxying HTTP/HTTPS requests.","default":""},{"name":"verbose","type":"string","description":"Log the commands that are executed during `git-clone`'s operation.","default":"true"},{"name":"gitInitImage","type":"string","description":"The image providing the git-init binary that this Task runs.","default":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2"},{"name":"userHome","type":"string","description":"Absolute path to the user's home directory.\n","default":"/home/git"}],"description":"These Tasks are Git tasks to work with repositories used by other tasks in your Pipeline.\nThe git-clone Task will clone a repo from the provided url into the output Workspace. By default the repo will be cloned into the root of your Workspace. You can clone into a subdirectory by setting this Task's subdirectory param. This Task also supports sparse checkouts. To perform a sparse checkout, pass a list of comma separated directory patterns to this Task's sparseCheckoutDirectories param.","steps":[{"name":"clone","image":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2","env":[{"name":"HOME","value":"/home/git"},{"name":"PARAM_URL","value":"https://github.com/GoogleContainerTools/skaffold"},{"name":"PARAM_REVISION","value":"v1.32.0"},{"name":"PARAM_REFSPEC"},{"name":"PARAM_SUBMODULES","value":"true"},{"name":"PARAM_DEPTH","value":"1"},{"name":"PARAM_SSL_VERIFY","value":"true"},{"name":"PARAM_CRT_FILENAME","value":"ca-bundle.crt"},{"name":"PARAM_SUBDIRECTORY"},{"name":"PARAM_DELETE_EXISTING","value":"true"},{"name":"PARAM_HTTP_PROXY"},{"name":"PARAM_HTTPS_PROXY"},{"name":"PARAM_NO_PROXY"},{"name":"PARAM_VERBOSE","value":"true"},{"name":"PARAM_SPARSE_CHECKOUT_DIRECTORIES"},{"name":"PARAM_USER_HOME","value":"/home/git"},{"name":"WORKSPACE_OUTPUT_PATH","value":"/workspace/output"},{"name":"WORKSPACE_SSH_DIRECTORY_BOUND","value":"false"},{"name":"WORKSPACE_SSH_DIRECTORY_PATH"},{"name":"WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND","value":"false"},{"name":"WORKSPACE_BASIC_AUTH_DIRECTORY_PATH"},{"name":"WORKSPACE_SSL_CA_DIRECTORY_BOUND","value":"false"},{"name":"WORKSPACE_SSL_CA_DIRECTORY_PATH"}],"resources":{},"securityContext":{"runAsUser":65532,"runAsNonRoot":true},"script":"#!/usr/bin/env sh\nset -eu\n\nif [ \"${PARAM_VERBOSE}\" = \"true\" ] ; then\n set -x\nfi\n\nif [ \"${WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND}\" = \"true\" ] ; then\n cp \"${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.git-credentials\" \"${PARAM_USER_HOME}/.git-credentials\"\n cp \"${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig\" \"${PARAM_USER_HOME}/.gitconfig\"\n chmod 400 \"${PARAM_USER_HOME}/.git-credentials\"\n chmod 400 \"${PARAM_USER_HOME}/.gitconfig\"\nfi\n\nif [ \"${WORKSPACE_SSH_DIRECTORY_BOUND}\" = \"true\" ] ; then\n cp -R \"${WORKSPACE_SSH_DIRECTORY_PATH}\" \"${PARAM_USER_HOME}\"/.ssh\n chmod 700 \"${PARAM_USER_HOME}\"/.ssh\n chmod -R 400 \"${PARAM_USER_HOME}\"/.ssh/*\nfi\n\nif [ \"${WORKSPACE_SSL_CA_DIRECTORY_BOUND}\" = \"true\" ] ; then\n export GIT_SSL_CAPATH=\"${WORKSPACE_SSL_CA_DIRECTORY_PATH}\"\n if [ \"${PARAM_CRT_FILENAME}\" != \"\" ] ; then\n export GIT_SSL_CAINFO=\"${WORKSPACE_SSL_CA_DIRECTORY_PATH}/${PARAM_CRT_FILENAME}\"\n fi\nfi\nCHECKOUT_DIR=\"${WORKSPACE_OUTPUT_PATH}/${PARAM_SUBDIRECTORY}\"\n\ncleandir() {\n # Delete any existing contents of the repo directory if it exists.\n #\n # We don't just \"rm -rf ${CHECKOUT_DIR}\" because ${CHECKOUT_DIR} might be \"/\"\n # or the root of a mounted volume.\n if [ -d \"${CHECKOUT_DIR}\" ] ; then\n # Delete non-hidden files and directories\n rm -rf \"${CHECKOUT_DIR:?}\"/*\n # Delete files and directories starting with . but excluding ..\n rm -rf \"${CHECKOUT_DIR}\"/.[!.]*\n # Delete files and directories starting with .. plus any other character\n rm -rf \"${CHECKOUT_DIR}\"/..?*\n fi\n}\n\nif [ \"${PARAM_DELETE_EXISTING}\" = \"true\" ] ; then\n cleandir || true\nfi\n\ntest -z \"${PARAM_HTTP_PROXY}\" || export HTTP_PROXY=\"${PARAM_HTTP_PROXY}\"\ntest -z \"${PARAM_HTTPS_PROXY}\" || export HTTPS_PROXY=\"${PARAM_HTTPS_PROXY}\"\ntest -z \"${PARAM_NO_PROXY}\" || export NO_PROXY=\"${PARAM_NO_PROXY}\"\n\ngit config --global --add safe.directory \"${WORKSPACE_OUTPUT_PATH}\"\n/ko-app/git-init \\\n -url=\"${PARAM_URL}\" \\\n -revision=\"${PARAM_REVISION}\" \\\n -refspec=\"${PARAM_REFSPEC}\" \\\n -path=\"${CHECKOUT_DIR}\" \\\n -sslVerify=\"${PARAM_SSL_VERIFY}\" \\\n -submodules=\"${PARAM_SUBMODULES}\" \\\n -depth=\"${PARAM_DEPTH}\" \\\n -sparseCheckoutDirectories=\"${PARAM_SPARSE_CHECKOUT_DIRECTORIES}\"\ncd \"${CHECKOUT_DIR}\"\nRESULT_SHA=\"$(git rev-parse HEAD)\"\nEXIT_CODE=\"$?\"\nif [ \"${EXIT_CODE}\" != 0 ] ; then\n exit \"${EXIT_CODE}\"\nfi\nRESULT_COMMITTER_DATE=\"$(git log -1 --pretty=%ct)\"\nprintf \"%s\" \"${RESULT_COMMITTER_DATE}\" \u003e \"/tekton/results/committer-date\"\nprintf \"%s\" \"${RESULT_SHA}\" \u003e \"/tekton/results/commit\"\nprintf \"%s\" \"${PARAM_URL}\" \u003e \"/tekton/results/url\"\n"}],"workspaces":[{"name":"output","description":"The git repo will be cloned onto the volume backing this Workspace."},{"name":"ssh-directory","description":"A .ssh directory with private key, known_hosts, config, etc. Copied to\nthe user's home before git commands are executed. Used to authenticate\nwith the git remote when performing the clone. Binding a Secret to this\nWorkspace is strongly recommended over other volume types.\n","optional":true},{"name":"basic-auth","description":"A Workspace containing a .gitconfig and .git-credentials file. These\nwill be copied to the user's home before any git commands are run. Any\nother files in this Workspace are ignored. It is strongly recommended\nto use ssh-directory over basic-auth whenever possible and to bind a\nSecret to this Workspace over other volume types.\n","optional":true},{"name":"ssl-ca-directory","description":"A workspace containing CA certificates, this will be used by Git to\nverify the peer with when fetching or pushing over HTTPS.\n","optional":true}],"results":[{"name":"commit","type":"string","description":"The precise commit SHA that was fetched by this Task."},{"name":"url","type":"string","description":"The precise URL that was fetched by this Task."},{"name":"committer-date","type":"string","description":"The epoch timestamp of the commit that was fetched by this Task."}]}}},"demo-pipeline-run-1-skaffold-unit-tests":{"pipelineTaskName":"skaffold-unit-tests","status":{"conditions":[{"type":"Succeeded","status":"True","lastTransitionTime":"2023-03-28T12:53:50Z","reason":"Succeeded","message":"All Steps have completed executing"}],"podName":"demo-pipeline-run-1-skaffold-unit-tests-pod","startTime":"2023-03-28T12:53:44Z","completionTime":"2023-03-28T12:53:50Z","steps":[{"terminated":{"exitCode":0,"reason":"Completed","startedAt":"2023-03-28T12:53:50Z","finishedAt":"2023-03-28T12:53:50Z","containerID":"containerd://b7baff271c608bda0ea80595165c798a1ccc2ae4d52084c0208a2323a2560d3e"},"name":"run-tests","container":"step-run-tests","imageID":"docker.io/library/golang@sha256:f7099345b8e4a93c62dc5102e7eb19a9cdbad12e7e322644eeaba355d70e616d"}],"taskSpec":{"steps":[{"name":"run-tests","image":"golang","workingDir":"/workspace/source/go/src/github.com/GoogleContainerTools/skaffold","env":[{"name":"GOPATH","value":"/workspace/go"}],"resources":{},"script":"# The intention behind this example Task is to run unit test, however we\n# currently do nothing to ensure that a unit test issue doesn't cause this example\n# to fail unnecessarily. In the future we could re-introduce the unit tests (since\n# we are now pinning the version of Skaffold we pull) or use Tekton Pipelines unit tests.\necho \"pass\"\n"}],"workspaces":[{"name":"source","mountPath":"/workspace/source/go/src/github.com/GoogleContainerTools/skaffold"}]}}}}] [] [] [{controller Update tekton.dev/v1beta1 2023-03-28 12:53:31 +0000 UTC FieldsV1 {"f:metadata":{"f:labels":{".":{},"f:tekton.dev/pipeline":{}}}} } {kubectl-create Update tekton.dev/v1beta1 2023-03-28 12:53:31 +0000 UTC FieldsV1 {"f:spec":{".":{},"f:pipelineRef":{".":{},"f:name":{}},"f:serviceAccountName":{},"f:workspaces":{}}} } {controller Update tekton.dev/v1beta1 2023-03-28 12:54:01 +0000 UTC FieldsV1 {"f:status":{".":{},"f:childReferences":{},"f:completionTime":{},"f:conditions":{},"f:pipelineSpec":{".":{},"f:params":{},"f:tasks":{},"f:workspaces":{}},"f:skippedTasks":{},"f:startTime":{},"f:taskRuns":{".":{},"f:demo-pipeline-run-1-build-skaffold-app":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-build-skaffold-web":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-fetch-from-git":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskResults":{},"f:taskSpec":{".":{},"f:description":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-skaffold-unit-tests":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:steps":{},"f:workspaces":{}}}}}}} status} {kubectl-patch Update tekton.dev/v1 2023-03-28 12:55:20 +0000 UTC FieldsV1 {"f:metadata":{"f:annotations":{"f:foo":{}}}} }]} {0xc000efe000 <nil> [] 0xc00078c2a0 {<nil> default} [{git-source &PersistentVolumeClaim{ObjectMeta:{ 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:PersistentVolumeClaimSpec{AccessModes:[ReadWriteOnce],Resources:ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{storage: {{1073741824 0} {<nil>} 1Gi BinarySI},},},VolumeName:,Selector:nil,StorageClassName:nil,VolumeMode:nil,DataSource:nil,DataSourceRef:nil,},Status:PersistentVolumeClaimStatus{Phase:,AccessModes:[],Capacity:ResourceList{},Conditions:[]PersistentVolumeClaimCondition{},AllocatedResources:ResourceList{},ResizeStatus:nil,},} nil nil nil nil nil nil}] []} {{0 [{Succeeded False {2023-03-28 12:54:01 +0000 UTC} Failed Tasks Completed: 4 (Failed: 2, Cancelled 0), Skipped: 2}] map[]} {2023-03-28 12:53:31 +0000 UTC 2023-03-28 12:54:01 +0000 UTC [] 0xc00095c990 [{deploy-app PipelineRun was stopping []} {deploy-web PipelineRun was stopping []}] [{{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-fetch-from-git fetch-from-git []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-skaffold-unit-tests skaffold-unit-tests []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-build-skaffold-web build-skaffold-web []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-build-skaffold-app build-skaffold-app []}] <nil> <nil>}}} -------------------------------- Source.Annotations map[foo:bar tekton.dev/v1beta1TaskRuns:{"demo-pipeline-run-1-build-skaffold-app":{"pipelineTaskName":"build-skaffold-app","status":{"conditions":[{"type":"Succeeded","status":"False","lastTransitionTime":"2023-03-28T12:54:00Z","reason":"Failed","message":"\"step-build-and-push\" exited with code 1 (image: \"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650\"); for logs run: kubectl -n default logs demo-pipeline-run-1-build-skaffold-app-pod -c step-build-and-push\n"}],"podName":"demo-pipeline-run-1-build-skaffold-app-pod","startTime":"2023-03-28T12:53:50Z","completionTime":"2023-03-28T12:54:00Z","steps":[{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:57Z","finishedAt":"2023-03-28T12:53:58Z","containerID":"containerd://a2eca6655be687c8e0c5164566c847abd34521f7fede1c05e28647cf1d315d02"},"name":"build-and-push","container":"step-build-and-push","imageID":"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:58Z","finishedAt":"2023-03-28T12:53:58Z","containerID":"containerd://9513ad68d25d50940934b430f29387b7ff058e961b97fad2e34b9a407b9494cc"},"name":"write-digest","container":"step-write-digest","imageID":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter@sha256:80d09ba9f2aa293a0d4b93ff44a56d6cbeb7669cf4108b63d8a3a94c0b446509"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:59Z","finishedAt":"2023-03-28T12:53:59Z","containerID":"containerd://25485fbcd44b4239e53812f708c5d0c801a982daf260eb74464b1eb6218467bb"},"name":"digest-to-results","container":"step-digest-to-results","imageID":"sha256:347be09212d543b6b4b1be11bbc1fb7c9574ae2067f355bc3950673578b4f590"}],"taskSpec":{"params":[{"name":"IMAGE","type":"string","description":"Name (reference) of the image to build."},{"name":"DOCKERFILE","type":"string","description":"Path to the Dockerfile to build.","default":"./Dockerfile"},{"name":"CONTEXT","type":"string","description":"The build context used by Kaniko.","default":"./"},{"name":"EXTRA_ARGS","type":"string","default":""},{"name":"BUILDER_IMAGE","type":"string","description":"The image on which builds will run","default":"gcr.io/kaniko-project/executor:v1.8.1"},{"name":"baseImage","type":"string","description":"Base image for GoogleContainerTools/skaffold microservice apps","default":"BASE=alpine:3.9"}],"steps":[{"name":"build-and-push","image":"gcr.io/kaniko-project/executor:v1.8.1","command":["/kaniko/executor","","--dockerfile=/workspace/source/examples/microservices/leeroy-app/Dockerfile","--context=/workspace/source/examples/microservices/leeroy-app","--destination=gcr.io/christiewilson-catfactory/leeroy-app","--oci-layout-path=/workspace/source/examples/microservices/leeroy-app/image-digest","--build-arg=BASE=alpine:3.9","--ignore-path=/product_uuid"],"workingDir":"/workspace/source","env":[{"name":"DOCKER_CONFIG","value":"/tekton/home/.docker"}],"resources":{},"securityContext":{"runAsUser":0}},{"name":"write-digest","image":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter:latest","command":["/ko-app/imagedigestexporter"],"args":["-images=[{\"name\":\"gcr.io/christiewilson-catfactory/leeroy-app\",\"type\":\"image\",\"url\":\"gcr.io/christiewilson-catfactory/leeroy-app\",\"digest\":\"\",\"OutputImageDir\":\"/workspace/source/examples/microservices/leeroy-app/image-digest\"}]","-terminationMessagePath=examples/microservices/leeroy-app/image-digested"],"workingDir":"/workspace/source","resources":{},"securityContext":{"runAsUser":0}},{"name":"digest-to-results","image":"stedolan/jq","workingDir":"/workspace/source","resources":{},"script":"cat examples/microservices/leeroy-app/image-digested | jq '.[0].value' -rj | tee /tekton/results/IMAGE_DIGEST\n"}],"workspaces":[{"name":"source"}],"results":[{"name":"IMAGE_DIGEST","type":"string","description":"Digest of the image just built."}]}}},"demo-pipeline-run-1-build-skaffold-web":{"pipelineTaskName":"build-skaffold-web","status":{"conditions":[{"type":"Succeeded","status":"False","lastTransitionTime":"2023-03-28T12:54:01Z","reason":"Failed","message":"\"step-build-and-push\" exited with code 1 (image: \"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650\"); for logs run: kubectl -n default logs demo-pipeline-run-1-build-skaffold-web-pod -c step-build-and-push\n"}],"podName":"demo-pipeline-run-1-build-skaffold-web-pod","startTime":"2023-03-28T12:53:50Z","completionTime":"2023-03-28T12:54:01Z","steps":[{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:53:59Z","finishedAt":"2023-03-28T12:54:00Z","containerID":"containerd://3f7862ecf04f45b1209befcb2e1d033450aadbe8a1edf0345fa371bd58195f70"},"name":"build-and-push","container":"step-build-and-push","imageID":"gcr.io/kaniko-project/executor@sha256:b44b0744b450e731b5a5213058792cd8d3a6a14c119cf6b1f143704f22a7c650"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:54:00Z","finishedAt":"2023-03-28T12:54:00Z","containerID":"containerd://b2a60c73c0f1ef94dd19e5ff61dc18fcb7ba761edc6efb672c4c47b76b4e359a"},"name":"write-digest","container":"step-write-digest","imageID":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter@sha256:80d09ba9f2aa293a0d4b93ff44a56d6cbeb7669cf4108b63d8a3a94c0b446509"},{"terminated":{"exitCode":1,"reason":"Error","startedAt":"2023-03-28T12:54:00Z","finishedAt":"2023-03-28T12:54:00Z","containerID":"containerd://e9fc96baa4f7b4441ec6aef5dd0de85c3e984e521dffe77fb1a361c1c8983495"},"name":"digest-to-results","container":"step-digest-to-results","imageID":"sha256:347be09212d543b6b4b1be11bbc1fb7c9574ae2067f355bc3950673578b4f590"}],"taskSpec":{"params":[{"name":"IMAGE","type":"string","description":"Name (reference) of the image to build."},{"name":"DOCKERFILE","type":"string","description":"Path to the Dockerfile to build.","default":"./Dockerfile"},{"name":"CONTEXT","type":"string","description":"The build context used by Kaniko.","default":"./"},{"name":"EXTRA_ARGS","type":"string","default":""},{"name":"BUILDER_IMAGE","type":"string","description":"The image on which builds will run","default":"gcr.io/kaniko-project/executor:v1.8.1"},{"name":"baseImage","type":"string","description":"Base image for GoogleContainerTools/skaffold microservice apps","default":"BASE=alpine:3.9"}],"steps":[{"name":"build-and-push","image":"gcr.io/kaniko-project/executor:v1.8.1","command":["/kaniko/executor","","--dockerfile=/workspace/source/examples/microservices/leeroy-web/Dockerfile","--context=/workspace/source/examples/microservices/leeroy-web","--destination=gcr.io/christiewilson-catfactory/leeroy-web","--oci-layout-path=/workspace/source/examples/microservices/leeroy-web/image-digest","--build-arg=BASE=alpine:3.9","--ignore-path=/product_uuid"],"workingDir":"/workspace/source","env":[{"name":"DOCKER_CONFIG","value":"/tekton/home/.docker"}],"resources":{},"securityContext":{"runAsUser":0}},{"name":"write-digest","image":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter:latest","command":["/ko-app/imagedigestexporter"],"args":["-images=[{\"name\":\"gcr.io/christiewilson-catfactory/leeroy-web\",\"type\":\"image\",\"url\":\"gcr.io/christiewilson-catfactory/leeroy-web\",\"digest\":\"\",\"OutputImageDir\":\"/workspace/source/examples/microservices/leeroy-web/image-digest\"}]","-terminationMessagePath=examples/microservices/leeroy-web/image-digested"],"workingDir":"/workspace/source","resources":{},"securityContext":{"runAsUser":0}},{"name":"digest-to-results","image":"stedolan/jq","workingDir":"/workspace/source","resources":{},"script":"cat examples/microservices/leeroy-web/image-digested | jq '.[0].value' -rj | tee /tekton/results/IMAGE_DIGEST\n"}],"workspaces":[{"name":"source"}],"results":[{"name":"IMAGE_DIGEST","type":"string","description":"Digest of the image just built."}]}}},"demo-pipeline-run-1-fetch-from-git":{"pipelineTaskName":"fetch-from-git","status":{"conditions":[{"type":"Succeeded","status":"True","lastTransitionTime":"2023-03-28T12:53:44Z","reason":"Succeeded","message":"All Steps have completed executing"}],"podName":"demo-pipeline-run-1-fetch-from-git-pod","startTime":"2023-03-28T12:53:31Z","completionTime":"2023-03-28T12:53:44Z","steps":[{"terminated":{"exitCode":0,"reason":"Completed","message":"[{\"key\":\"commit\",\"value\":\"edd1d458902d64e51e17b83514e1fc693c248259\",\"type\":1},{\"key\":\"committer-date\",\"value\":\"1631736966\",\"type\":1},{\"key\":\"url\",\"value\":\"https://github.com/GoogleContainerTools/skaffold\",\"type\":1}]","startedAt":"2023-03-28T12:53:39Z","finishedAt":"2023-03-28T12:53:43Z","containerID":"containerd://012ced0215db70d04a8e0df700ee1a4cfdafa583c53cb0d57f4d96bf5c7de21a"},"name":"clone","container":"step-clone","imageID":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init@sha256:28ff94e63e4058afc3f15b4c11c08cf3b54fa91faa646a4bbac90380cd7158df"}],"taskResults":[{"name":"commit","type":"string","value":"edd1d458902d64e51e17b83514e1fc693c248259"},{"name":"committer-date","type":"string","value":"1631736966"},{"name":"url","type":"string","value":"https://github.com/GoogleContainerTools/skaffold"}],"taskSpec":{"params":[{"name":"url","type":"string","description":"Repository URL to clone from."},{"name":"revision","type":"string","description":"Revision to checkout. (branch, tag, sha, ref, etc...)","default":""},{"name":"refspec","type":"string","description":"Refspec to fetch before checking out revision.","default":""},{"name":"submodules","type":"string","description":"Initialize and fetch git submodules.","default":"true"},{"name":"depth","type":"string","description":"Perform a shallow clone, fetching only the most recent N commits.","default":"1"},{"name":"sslVerify","type":"string","description":"Set the `http.sslVerify` global git config. Setting this to `false` is not advised unless you are sure that you trust your git remote.","default":"true"},{"name":"crtFileName","type":"string","description":"file name of mounted crt using ssl-ca-directory workspace. default value is ca-bundle.crt.","default":"ca-bundle.crt"},{"name":"subdirectory","type":"string","description":"Subdirectory inside the `output` Workspace to clone the repo into.","default":""},{"name":"sparseCheckoutDirectories","type":"string","description":"Define the directory patterns to match or exclude when performing a sparse checkout.","default":""},{"name":"deleteExisting","type":"string","description":"Clean out the contents of the destination directory if it already exists before cloning.","default":"true"},{"name":"httpProxy","type":"string","description":"HTTP proxy server for non-SSL requests.","default":""},{"name":"httpsProxy","type":"string","description":"HTTPS proxy server for SSL requests.","default":""},{"name":"noProxy","type":"string","description":"Opt out of proxying HTTP/HTTPS requests.","default":""},{"name":"verbose","type":"string","description":"Log the commands that are executed during `git-clone`'s operation.","default":"true"},{"name":"gitInitImage","type":"string","description":"The image providing the git-init binary that this Task runs.","default":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2"},{"name":"userHome","type":"string","description":"Absolute path to the user's home directory.\n","default":"/home/git"}],"description":"These Tasks are Git tasks to work with repositories used by other tasks in your Pipeline.\nThe git-clone Task will clone a repo from the provided url into the output Workspace. By default the repo will be cloned into the root of your Workspace. You can clone into a subdirectory by setting this Task's subdirectory param. This Task also supports sparse checkouts. To perform a sparse checkout, pass a list of comma separated directory patterns to this Task's sparseCheckoutDirectories param.","steps":[{"name":"clone","image":"gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2","env":[{"name":"HOME","value":"/home/git"},{"name":"PARAM_URL","value":"https://github.com/GoogleContainerTools/skaffold"},{"name":"PARAM_REVISION","value":"v1.32.0"},{"name":"PARAM_REFSPEC"},{"name":"PARAM_SUBMODULES","value":"true"},{"name":"PARAM_DEPTH","value":"1"},{"name":"PARAM_SSL_VERIFY","value":"true"},{"name":"PARAM_CRT_FILENAME","value":"ca-bundle.crt"},{"name":"PARAM_SUBDIRECTORY"},{"name":"PARAM_DELETE_EXISTING","value":"true"},{"name":"PARAM_HTTP_PROXY"},{"name":"PARAM_HTTPS_PROXY"},{"name":"PARAM_NO_PROXY"},{"name":"PARAM_VERBOSE","value":"true"},{"name":"PARAM_SPARSE_CHECKOUT_DIRECTORIES"},{"name":"PARAM_USER_HOME","value":"/home/git"},{"name":"WORKSPACE_OUTPUT_PATH","value":"/workspace/output"},{"name":"WORKSPACE_SSH_DIRECTORY_BOUND","value":"false"},{"name":"WORKSPACE_SSH_DIRECTORY_PATH"},{"name":"WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND","value":"false"},{"name":"WORKSPACE_BASIC_AUTH_DIRECTORY_PATH"},{"name":"WORKSPACE_SSL_CA_DIRECTORY_BOUND","value":"false"},{"name":"WORKSPACE_SSL_CA_DIRECTORY_PATH"}],"resources":{},"securityContext":{"runAsUser":65532,"runAsNonRoot":true},"script":"#!/usr/bin/env sh\nset -eu\n\nif [ \"${PARAM_VERBOSE}\" = \"true\" ] ; then\n set -x\nfi\n\nif [ \"${WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND}\" = \"true\" ] ; then\n cp \"${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.git-credentials\" \"${PARAM_USER_HOME}/.git-credentials\"\n cp \"${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig\" \"${PARAM_USER_HOME}/.gitconfig\"\n chmod 400 \"${PARAM_USER_HOME}/.git-credentials\"\n chmod 400 \"${PARAM_USER_HOME}/.gitconfig\"\nfi\n\nif [ \"${WORKSPACE_SSH_DIRECTORY_BOUND}\" = \"true\" ] ; then\n cp -R \"${WORKSPACE_SSH_DIRECTORY_PATH}\" \"${PARAM_USER_HOME}\"/.ssh\n chmod 700 \"${PARAM_USER_HOME}\"/.ssh\n chmod -R 400 \"${PARAM_USER_HOME}\"/.ssh/*\nfi\n\nif [ \"${WORKSPACE_SSL_CA_DIRECTORY_BOUND}\" = \"true\" ] ; then\n export GIT_SSL_CAPATH=\"${WORKSPACE_SSL_CA_DIRECTORY_PATH}\"\n if [ \"${PARAM_CRT_FILENAME}\" != \"\" ] ; then\n export GIT_SSL_CAINFO=\"${WORKSPACE_SSL_CA_DIRECTORY_PATH}/${PARAM_CRT_FILENAME}\"\n fi\nfi\nCHECKOUT_DIR=\"${WORKSPACE_OUTPUT_PATH}/${PARAM_SUBDIRECTORY}\"\n\ncleandir() {\n # Delete any existing contents of the repo directory if it exists.\n #\n # We don't just \"rm -rf ${CHECKOUT_DIR}\" because ${CHECKOUT_DIR} might be \"/\"\n # or the root of a mounted volume.\n if [ -d \"${CHECKOUT_DIR}\" ] ; then\n # Delete non-hidden files and directories\n rm -rf \"${CHECKOUT_DIR:?}\"/*\n # Delete files and directories starting with . but excluding ..\n rm -rf \"${CHECKOUT_DIR}\"/.[!.]*\n # Delete files and directories starting with .. plus any other character\n rm -rf \"${CHECKOUT_DIR}\"/..?*\n fi\n}\n\nif [ \"${PARAM_DELETE_EXISTING}\" = \"true\" ] ; then\n cleandir || true\nfi\n\ntest -z \"${PARAM_HTTP_PROXY}\" || export HTTP_PROXY=\"${PARAM_HTTP_PROXY}\"\ntest -z \"${PARAM_HTTPS_PROXY}\" || export HTTPS_PROXY=\"${PARAM_HTTPS_PROXY}\"\ntest -z \"${PARAM_NO_PROXY}\" || export NO_PROXY=\"${PARAM_NO_PROXY}\"\n\ngit config --global --add safe.directory \"${WORKSPACE_OUTPUT_PATH}\"\n/ko-app/git-init \\\n -url=\"${PARAM_URL}\" \\\n -revision=\"${PARAM_REVISION}\" \\\n -refspec=\"${PARAM_REFSPEC}\" \\\n -path=\"${CHECKOUT_DIR}\" \\\n -sslVerify=\"${PARAM_SSL_VERIFY}\" \\\n -submodules=\"${PARAM_SUBMODULES}\" \\\n -depth=\"${PARAM_DEPTH}\" \\\n -sparseCheckoutDirectories=\"${PARAM_SPARSE_CHECKOUT_DIRECTORIES}\"\ncd \"${CHECKOUT_DIR}\"\nRESULT_SHA=\"$(git rev-parse HEAD)\"\nEXIT_CODE=\"$?\"\nif [ \"${EXIT_CODE}\" != 0 ] ; then\n exit \"${EXIT_CODE}\"\nfi\nRESULT_COMMITTER_DATE=\"$(git log -1 --pretty=%ct)\"\nprintf \"%s\" \"${RESULT_COMMITTER_DATE}\" \u003e \"/tekton/results/committer-date\"\nprintf \"%s\" \"${RESULT_SHA}\" \u003e \"/tekton/results/commit\"\nprintf \"%s\" \"${PARAM_URL}\" \u003e \"/tekton/results/url\"\n"}],"workspaces":[{"name":"output","description":"The git repo will be cloned onto the volume backing this Workspace."},{"name":"ssh-directory","description":"A .ssh directory with private key, known_hosts, config, etc. Copied to\nthe user's home before git commands are executed. Used to authenticate\nwith the git remote when performing the clone. Binding a Secret to this\nWorkspace is strongly recommended over other volume types.\n","optional":true},{"name":"basic-auth","description":"A Workspace containing a .gitconfig and .git-credentials file. These\nwill be copied to the user's home before any git commands are run. Any\nother files in this Workspace are ignored. It is strongly recommended\nto use ssh-directory over basic-auth whenever possible and to bind a\nSecret to this Workspace over other volume types.\n","optional":true},{"name":"ssl-ca-directory","description":"A workspace containing CA certificates, this will be used by Git to\nverify the peer with when fetching or pushing over HTTPS.\n","optional":true}],"results":[{"name":"commit","type":"string","description":"The precise commit SHA that was fetched by this Task."},{"name":"url","type":"string","description":"The precise URL that was fetched by this Task."},{"name":"committer-date","type":"string","description":"The epoch timestamp of the commit that was fetched by this Task."}]}}},"demo-pipeline-run-1-skaffold-unit-tests":{"pipelineTaskName":"skaffold-unit-tests","status":{"conditions":[{"type":"Succeeded","status":"True","lastTransitionTime":"2023-03-28T12:53:50Z","reason":"Succeeded","message":"All Steps have completed executing"}],"podName":"demo-pipeline-run-1-skaffold-unit-tests-pod","startTime":"2023-03-28T12:53:44Z","completionTime":"2023-03-28T12:53:50Z","steps":[{"terminated":{"exitCode":0,"reason":"Completed","startedAt":"2023-03-28T12:53:50Z","finishedAt":"2023-03-28T12:53:50Z","containerID":"containerd://b7baff271c608bda0ea80595165c798a1ccc2ae4d52084c0208a2323a2560d3e"},"name":"run-tests","container":"step-run-tests","imageID":"docker.io/library/golang@sha256:f7099345b8e4a93c62dc5102e7eb19a9cdbad12e7e322644eeaba355d70e616d"}],"taskSpec":{"steps":[{"name":"run-tests","image":"golang","workingDir":"/workspace/source/go/src/github.com/GoogleContainerTools/skaffold","env":[{"name":"GOPATH","value":"/workspace/go"}],"resources":{},"script":"# The intention behind this example Task is to run unit test, however we\n# currently do nothing to ensure that a unit test issue doesn't cause this example\n# to fail unnecessarily. In the future we could re-introduce the unit tests (since\n# we are now pinning the version of Skaffold we pull) or use Tekton Pipelines unit tests.\necho \"pass\"\n"}],"workspaces":[{"name":"source","mountPath":"/workspace/source/go/src/github.com/GoogleContainerTools/skaffold"}]}}}}] -------------------------------- Pr &{{ } { 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []} {<nil> <nil> [] [] <nil> nil <nil> [] []} {{0 [] map[]} {<nil> <nil> map[] map[] [] <nil> [] [] <nil> <nil> map[]}}} -------------------------------- Pr.Annotations map[] {"severity":"info","timestamp":"2023-03-28T12:55:20.758Z","logger":"tekton-pipelines-webhook","caller":"webhook/conversion.go:45","message":"Webhook ServeHTTP request=&http.Request{Method:\"POST\", URL:(*url.URL)(0xc000b92000), Proto:\"HTTP/1.1\", ProtoMajor:1, ProtoMinor:1, Header:http.Header{\"Accept\":[]string{\"application/json, */*\"}, \"Accept-Encoding\":[]string{\"gzip\"}, \"Content-Length\":[]string{\"6326\"}, \"Content-Type\":[]string{\"application/json\"}, \"User-Agent\":[]string{\"kube-apiserver-admission\"}}, Body:(*http.body)(0xc0010c2080), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:6326, TransferEncoding:[]string(nil), Close:false, Host:\"tekton-pipelines-webhook.tekton-pipelines.svc:443\", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:\"10.244.0.1:23619\", RequestURI:\"/resource-conversion?timeout=30s\", TLS:(*tls.ConnectionState)(0xc00015e370), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.cancelCtx)(0xc0010c22c0)}","commit":"0e9e4b9-dirty"} -------------------------------- Sink &{{ } { 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []} {<nil> <nil> [] <nil> {<nil> } [] []} {{0 [] map[]} {<nil> <nil> [] <nil> [] [] <nil> <nil>}}} -------------------------------- Sink.Annotations map[] -------------------------------- Pr &{{PipelineRun tekton.dev/v1beta1} {demo-pipeline-run-1 default efdc375d-8c2e-4e02-aa9c-268ba073f1d0 1 2023-03-28 12:53:31 +0000 UTC <nil> <nil> map[tekton.dev/pipeline:demo.pipeline] map[foo:bar] [] [] [{controller Update tekton.dev/v1beta1 2023-03-28 12:53:31 +0000 UTC FieldsV1 {"f:metadata":{"f:labels":{".":{},"f:tekton.dev/pipeline":{}}}} } {kubectl-create Update tekton.dev/v1beta1 2023-03-28 12:53:31 +0000 UTC FieldsV1 {"f:spec":{".":{},"f:pipelineRef":{".":{},"f:name":{}},"f:serviceAccountName":{},"f:workspaces":{}}} } {controller Update tekton.dev/v1beta1 2023-03-28 12:54:01 +0000 UTC FieldsV1 {"f:status":{".":{},"f:childReferences":{},"f:completionTime":{},"f:conditions":{},"f:pipelineSpec":{".":{},"f:params":{},"f:tasks":{},"f:workspaces":{}},"f:skippedTasks":{},"f:startTime":{},"f:taskRuns":{".":{},"f:demo-pipeline-run-1-build-skaffold-app":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-build-skaffold-web":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-fetch-from-git":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskResults":{},"f:taskSpec":{".":{},"f:description":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-skaffold-unit-tests":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:steps":{},"f:workspaces":{}}}}}}} status} {kubectl-patch Update tekton.dev/v1 2023-03-28 12:55:20 +0000 UTC FieldsV1 {"f:metadata":{"f:annotations":{"f:foo":{}}}} }]} {0xc000c1c000 <nil> [] [] default 0xc0003382a0 nil <nil> [{git-source &PersistentVolumeClaim{ObjectMeta:{ 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:PersistentVolumeClaimSpec{AccessModes:[ReadWriteOnce],Resources:ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{storage: {{1073741824 0} {<nil>} 1Gi BinarySI},},},VolumeName:,Selector:nil,StorageClassName:nil,VolumeMode:nil,DataSource:nil,DataSourceRef:nil,},Status:PersistentVolumeClaimStatus{Phase:,AccessModes:[],Capacity:ResourceList{},Conditions:[]PersistentVolumeClaimCondition{},AllocatedResources:ResourceList{},ResizeStatus:nil,},} nil nil nil nil nil nil}] []} {{0 [{Succeeded False {2023-03-28 12:54:01 +0000 UTC} Failed Tasks Completed: 4 (Failed: 2, Cancelled 0), Skipped: 2}] map[]} {2023-03-28 12:53:31 +0000 UTC 2023-03-28 12:54:01 +0000 UTC map[] map[] [] 0xc0006100a0 [{deploy-app PipelineRun was stopping []} {deploy-web PipelineRun was stopping []}] [{{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-fetch-from-git fetch-from-git []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-skaffold-unit-tests skaffold-unit-tests []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-build-skaffold-web build-skaffold-web []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-build-skaffold-app build-skaffold-app []}] <nil> <nil> map[]}}} -------------------------------- Pr.Annotations map[foo:bar] {"severity":"info","timestamp":"2023-03-28T12:55:20.759Z","logger":"tekton-pipelines-webhook","caller":"webhook/conversion.go:45","message":"Webhook ServeHTTP request=&http.Request{Method:\"POST\", URL:(*url.URL)(0xc000e88120), Proto:\"HTTP/1.1\", ProtoMajor:1, ProtoMinor:1, Header:http.Header{\"Accept\":[]string{\"application/json, */*\"}, \"Accept-Encoding\":[]string{\"gzip\"}, \"Content-Length\":[]string{\"6326\"}, \"Content-Type\":[]string{\"application/json\"}, \"User-Agent\":[]string{\"kube-apiserver-admission\"}}, Body:(*http.body)(0xc000762180), GetBody:(func() (io.ReadCloser, error))(nil), ContentLength:6326, TransferEncoding:[]string(nil), Close:false, Host:\"tekton-pipelines-webhook.tekton-pipelines.svc:443\", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:\"10.244.0.1:58700\", RequestURI:\"/resource-conversion?timeout=30s\", TLS:(*tls.ConnectionState)(0xc00015e2c0), Cancel:(<-chan struct {})(nil), Response:(*http.Response)(nil), ctx:(*context.cancelCtx)(0xc0007621c0)}","commit":"0e9e4b9-dirty"} -------------------------------- Sink &{{ } { 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []} {<nil> <nil> [] <nil> {<nil> } [] []} {{0 [] map[]} {<nil> <nil> [] <nil> [] [] <nil> <nil>}}} -------------------------------- Sink.Annotations map[] -------------------------------- Pr &{{PipelineRun tekton.dev/v1beta1} {demo-pipeline-run-1 default efdc375d-8c2e-4e02-aa9c-268ba073f1d0 1 2023-03-28 12:53:31 +0000 UTC <nil> <nil> map[tekton.dev/pipeline:demo.pipeline] map[foo:bar] [] [] [{controller Update tekton.dev/v1beta1 2023-03-28 12:53:31 +0000 UTC FieldsV1 {"f:metadata":{"f:labels":{".":{},"f:tekton.dev/pipeline":{}}}} } {kubectl-create Update tekton.dev/v1beta1 2023-03-28 12:53:31 +0000 UTC FieldsV1 {"f:spec":{".":{},"f:pipelineRef":{".":{},"f:name":{}},"f:serviceAccountName":{},"f:workspaces":{}}} } {controller Update tekton.dev/v1beta1 2023-03-28 12:54:01 +0000 UTC FieldsV1 {"f:status":{".":{},"f:childReferences":{},"f:completionTime":{},"f:conditions":{},"f:pipelineSpec":{".":{},"f:params":{},"f:tasks":{},"f:workspaces":{}},"f:skippedTasks":{},"f:startTime":{},"f:taskRuns":{".":{},"f:demo-pipeline-run-1-build-skaffold-app":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-build-skaffold-web":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-fetch-from-git":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskResults":{},"f:taskSpec":{".":{},"f:description":{},"f:params":{},"f:results":{},"f:steps":{},"f:workspaces":{}}}},"f:demo-pipeline-run-1-skaffold-unit-tests":{".":{},"f:pipelineTaskName":{},"f:status":{".":{},"f:completionTime":{},"f:conditions":{},"f:podName":{},"f:startTime":{},"f:steps":{},"f:taskSpec":{".":{},"f:steps":{},"f:workspaces":{}}}}}}} status} {kubectl-patch Update tekton.dev/v1 2023-03-28 12:55:20 +0000 UTC FieldsV1 {"f:metadata":{"f:annotations":{"f:foo":{}}}} }]} {0xc0005a34a0 <nil> [] [] default 0xc0010fc420 nil <nil> [{git-source &PersistentVolumeClaim{ObjectMeta:{ 0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] [] []},Spec:PersistentVolumeClaimSpec{AccessModes:[ReadWriteOnce],Resources:ResourceRequirements{Limits:ResourceList{},Requests:ResourceList{storage: {{1073741824 0} {<nil>} 1Gi BinarySI},},},VolumeName:,Selector:nil,StorageClassName:nil,VolumeMode:nil,DataSource:nil,DataSourceRef:nil,},Status:PersistentVolumeClaimStatus{Phase:,AccessModes:[],Capacity:ResourceList{},Conditions:[]PersistentVolumeClaimCondition{},AllocatedResources:ResourceList{},ResizeStatus:nil,},} nil nil nil nil nil nil}] []} {{0 [{Succeeded False {2023-03-28 12:54:01 +0000 UTC} Failed Tasks Completed: 4 (Failed: 2, Cancelled 0), Skipped: 2}] map[]} {2023-03-28 12:53:31 +0000 UTC 2023-03-28 12:54:01 +0000 UTC map[] map[] [] 0xc000127180 [{deploy-app PipelineRun was stopping []} {deploy-web PipelineRun was stopping []}] [{{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-fetch-from-git fetch-from-git []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-skaffold-unit-tests skaffold-unit-tests []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-build-skaffold-web build-skaffold-web []} {{tekton.dev/v1beta1 TaskRun} demo-pipeline-run-1-build-skaffold-app build-skaffold-app []}] <nil> <nil> map[]}}} -------------------------------- Pr.Annotations map[foo:bar]