diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index defc1bd6a4..cdb39dbb4a 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,6 +1,6 @@ blank_issues_enabled: false contact_links: - - name: Tekton Community Resources + - name: Tekton Community Resources url: https://github.com/tektoncd/community/blob/master/contact.md about: Reach out here to see what we're up to - name: Tekton Slack Workspace diff --git a/aws-cli/aws-cli.yaml b/aws-cli/aws-cli.yaml index afbe58cb86..2c18b96048 100644 --- a/aws-cli/aws-cli.yaml +++ b/aws-cli/aws-cli.yaml @@ -21,4 +21,4 @@ spec: image: amazon/aws-cli:latest script: "$(params.SCRIPT)" args: - - "$(params.ARGS)" \ No newline at end of file + - "$(params.ARGS)" \ No newline at end of file diff --git a/aws-cli/example/secret.yaml b/aws-cli/example/secret.yaml index 7c8e9e7923..d940c24bf9 100644 --- a/aws-cli/example/secret.yaml +++ b/aws-cli/example/secret.yaml @@ -3,7 +3,7 @@ kind: Secret metadata: name: aws-credentials type: Opaque -stringData: +stringData: credentials: |- [$(profile-name)] aws_access_key_id = $(aws_access_key_id) diff --git a/buildid/examples/build-service-api.yaml b/buildid/examples/build-service-api.yaml index f63792d931..ac2b7a4893 100644 --- a/buildid/examples/build-service-api.yaml +++ b/buildid/examples/build-service-api.yaml @@ -6,7 +6,7 @@ spec: params: - name: build-id description: ID of the current build - type: string + type: string steps: - name: display-buildid image: bash:latest diff --git a/buildid/examples/pipeline.yaml b/buildid/examples/pipeline.yaml index 06ba2d2550..fa76a7e3c6 100644 --- a/buildid/examples/pipeline.yaml +++ b/buildid/examples/pipeline.yaml @@ -11,9 +11,9 @@ spec: - name: get-build-id taskRef: name: generate-build-id - params: + params: - name: base-version - value: $(params.service-version) + value: $(params.service-version) - name: build-api taskRef: name: build-service-api diff --git a/curl/curl.yaml b/curl/curl.yaml index 397844b9b6..fc56f71900 100644 --- a/curl/curl.yaml +++ b/curl/curl.yaml @@ -4,19 +4,19 @@ metadata: name: curl spec: params: - - name: url - description: URL to curl'ed - type: string - - name: options - description: options of url - type: array - default: [] - - name: curl-image - description: option of curl image - type: string - default: "curlimages/curl" + - name: url + description: URL to curl'ed + type: string + - name: options + description: options of url + type: array + default: [] + - name: curl-image + description: option of curl image + type: string + default: "curlimages/curl" steps: - - name: curl - image: "$(params.curl-image)" - command: [curl] - args: ["$(params.options[*])", "$(params.url)"] + - name: curl + image: "$(params.curl-image)" + command: [curl] + args: ["$(params.options[*])", "$(params.url)"] diff --git a/curl/tests/run.yaml b/curl/tests/run.yaml index 4a833133ed..0aea9d89fe 100644 --- a/curl/tests/run.yaml +++ b/curl/tests/run.yaml @@ -9,7 +9,7 @@ spec: value: "www.google.com" - name: options value: - - "-i" + - "-i" taskRef: name: curl --- diff --git a/gcs/gcs-generic.yaml b/gcs/gcs-generic.yaml index fd904345b3..aeeb577f10 100644 --- a/gcs/gcs-generic.yaml +++ b/gcs/gcs-generic.yaml @@ -3,31 +3,31 @@ kind: Task metadata: name: gcs-generic spec: - workspaces: - - name: credentials - description: A secret with a service account key to use as GOOGLE_APPLICATION_CREDENTIALS. - params: - - name: command - description: The command line that you would like to enter. - type: string - - name: options - description: The extended command line that you would like to enter. - type: array - - name: serviceAccountPath - description: | + workspaces: + - name: credentials + description: A secret with a service account key to use as GOOGLE_APPLICATION_CREDENTIALS. + params: + - name: command + description: The command line that you would like to enter. + type: string + - name: options + description: The extended command line that you would like to enter. + type: array + - name: serviceAccountPath + description: | The path inside the credentials workspace to the GOOGLE_APPLICATION_CREDENTIALS key file. - type: string - default: service_account.json - - name: image - description: google cloud image that will be used in steps. - type: string - default: google/cloud-sdk - steps: - - name: credential-setup - image: "$(params.image)" - script: | - #!/usr/bin/env bash - set -xe + type: string + default: service_account.json + - name: image + description: google cloud image that will be used in steps. + type: string + default: google/cloud-sdk + steps: + - name: credential-setup + image: "$(params.image)" + script: | + #!/usr/bin/env bash + set -xe CRED_PATH="$(workspaces.credentials.path)/$(params.serviceAccountPath)" @@ -38,9 +38,8 @@ spec: if [[ "${GOOGLE_APPLICATION_CREDENTIALS}" != "" ]]; then echo "GOOGLE_APPLICATION_CREDENTIALS is set, activating Service Account..." gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS} - fi - - name: run-gsutil - image: "$(params.image)" - command: [gsutil] - args: ["$(params.command)", "$(params.options[*])"] - + fi + - name: run-gsutil + image: "$(params.image)" + command: [gsutil] + args: ["$(params.command)", "$(params.options[*])"] diff --git a/git/examples/git-clone-checking-out-a-branch.yaml b/git/examples/git-clone-checking-out-a-branch.yaml index 816dd2d096..7639a8a8f9 100644 --- a/git/examples/git-clone-checking-out-a-branch.yaml +++ b/git/examples/git-clone-checking-out-a-branch.yaml @@ -39,7 +39,7 @@ spec: - name: revision value: $(params.branch-name) - name: cat-readme - runAfter: ["fetch-repo"] # Wait until the clone is done before reading the readme. + runAfter: ["fetch-repo"] # Wait until the clone is done before reading the readme. workspaces: - name: source workspace: shared-data diff --git a/git/examples/git-clone-checking-out-a-commit.yaml b/git/examples/git-clone-checking-out-a-commit.yaml index 7dd8d87781..fdff41530f 100644 --- a/git/examples/git-clone-checking-out-a-commit.yaml +++ b/git/examples/git-clone-checking-out-a-commit.yaml @@ -39,7 +39,7 @@ spec: - name: revision value: $(params.commit) - name: compare-received-commit-to-expected - runAfter: ["fetch-repo"] # Wait until the clone is done before reading the readme. + runAfter: ["fetch-repo"] # Wait until the clone is done before reading the readme. params: - name: expected-commit value: $(params.commit) @@ -84,4 +84,4 @@ spec: - name: repo-url value: https://github.com/tektoncd/pipeline.git - name: commit - value: 301b41380e95382a18b391c2165fa3a6a3de93b0 # Tekton Pipeline's first ever commit! + value: 301b41380e95382a18b391c2165fa3a6a3de93b0 # Tekton Pipeline's first ever commit! diff --git a/git/examples/using-git-clone-result.yaml b/git/examples/using-git-clone-result.yaml index 6bc1fa9ee2..2a639946df 100644 --- a/git/examples/using-git-clone-result.yaml +++ b/git/examples/using-git-clone-result.yaml @@ -68,7 +68,7 @@ spec: name: validate-tag-sha workspaces: - name: output - emptyDir: {} # We don't care about the repo contents in this example, just the "commit" result + emptyDir: {} # We don't care about the repo contents in this example, just the "commit" result params: - name: repo-url value: https://github.com/tektoncd/pipeline.git diff --git a/github/add-labels/add-labels.yaml b/github/add-labels/add-labels.yaml index 0b1624ba13..08d15322c1 100644 --- a/github/add-labels/add-labels.yaml +++ b/github/add-labels/add-labels.yaml @@ -49,7 +49,7 @@ spec: split_url = urllib.parse.urlparse( "$(params.REQUEST_URL)").path.split("/") - + # This will convert https://github.com/foo/bar/pull/202 to # api url path /repos/foo/issues/202 diff --git a/github/add-labels/example/run.yaml b/github/add-labels/example/run.yaml index a3b045a4e9..da506be877 100644 --- a/github/add-labels/example/run.yaml +++ b/github/add-labels/example/run.yaml @@ -9,6 +9,6 @@ spec: - name: REQUEST_URL value: https://github.com/Divyansh42/aws-cli/pull/1 - name: LABELS - value: + value: - approve - - kind/feature \ No newline at end of file + - kind/feature diff --git a/github/create-github-release/example/run.yaml b/github/create-github-release/example/run.yaml index ca24317b1d..9d6abf776e 100644 --- a/github/create-github-release/example/run.yaml +++ b/github/create-github-release/example/run.yaml @@ -60,10 +60,10 @@ spec: - ReadWriteOnce resources: requests: - storage: 500Mi + storage: 500Mi - name: upload configmap: name: upload-asset - name: release-notes configmap: - name: release-file \ No newline at end of file + name: release-file diff --git a/gitlab/add-labels.yaml b/gitlab/add-labels.yaml index 1da4f45514..974cbd4b14 100644 --- a/gitlab/add-labels.yaml +++ b/gitlab/add-labels.yaml @@ -52,7 +52,7 @@ spec: import sys import http.client import urllib.parse - + split_url = urllib.parse.urlparse( "$(params.REQUEST_URL)").path.split("/") @@ -60,7 +60,7 @@ spec: # This will convert https://gitlab.com/foo/bar/issues/202 to # api url path /projects/foo/bar/issues/202 - + api_url = "$(params.API_PATH_PREFIX)" + "/projects/" + "%2F".join(split_url[1:3]) + \ "/" + split_url[4] + "/" + split_url[-1] @@ -68,7 +68,7 @@ spec: # Get array of Labels labels = sys.argv[1: ] labels_string = ','.join(labels) - + data = { "labels": labels_string } @@ -76,7 +76,7 @@ spec: # Adding the data as the query parameter params = urllib.parse.urlencode(data) api_url += "?" + params - + print("Sending the data to GitLab: ") print(data) conn = http.client.HTTPSConnection("$(params.GITLAB_HOST_URL)") @@ -86,7 +86,7 @@ spec: headers={ "Authorization": "Bearer " + os.environ["TOKEN"], }) - + resp = conn.getresponse() if not str(resp.status).startswith("2"): print("Error: %d" % (resp.status)) @@ -94,10 +94,10 @@ spec: else: print("Labels has been added to " "$(params.REQUEST_URL)") - + env: - name: TOKEN valueFrom: secretKeyRef: name: $(params.GITLAB_TOKEN_SECRET) - key: $(params.GITLAB_TOKEN_SECRET_KEY) \ No newline at end of file + key: $(params.GITLAB_TOKEN_SECRET_KEY) diff --git a/gitlab/create-gitlab-release/create-gitlab-release.yaml b/gitlab/create-gitlab-release/create-gitlab-release.yaml index 66150abd0e..0635faba26 100644 --- a/gitlab/create-gitlab-release/create-gitlab-release.yaml +++ b/gitlab/create-gitlab-release/create-gitlab-release.yaml @@ -42,7 +42,7 @@ spec: image: registry.access.redhat.com/ubi8/ubi-minimal:latest script: | #!/usr/bin/env bash - + # Creating asset json if file is to be uploaded with gitlab release # assetJson="" @@ -72,10 +72,10 @@ spec: curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN:$TOKEN" \ --data "$(generate_api_post_data)" \ --request POST https://gitlab.com/api/v4/projects/$(params.PROJECT_ID)/releases - + env: - name: TOKEN valueFrom: secretKeyRef: name: $(params.GITLAB_TOKEN_SECRET) - key: $(params.GITLAB_TOKEN_SECRET_KEY) \ No newline at end of file + key: $(params.GITLAB_TOKEN_SECRET_KEY) diff --git a/kubectl/clusterrole.yaml b/kubectl/clusterrole.yaml index 3cea5b374e..358419f015 100644 --- a/kubectl/clusterrole.yaml +++ b/kubectl/clusterrole.yaml @@ -54,4 +54,4 @@ rules: - get - create - update - - delete + - delete diff --git a/kubectl/kubectl-deploy.yaml b/kubectl/kubectl-deploy.yaml index 6020739e5e..6999817eae 100644 --- a/kubectl/kubectl-deploy.yaml +++ b/kubectl/kubectl-deploy.yaml @@ -25,7 +25,7 @@ spec: default: "false" description: Enable set owner reference for created resource. - name: image - default: index.docker.io/aipipeline/kubeclient:v0.0.2 # it is huge + default: index.docker.io/aipipeline/kubeclient:v0.0.2 # it is huge description: Kubectl wrapper image steps: - name: kubeconfig @@ -61,4 +61,3 @@ spec: else echo "no output file found" fi - diff --git a/kubectl/taskrun.yaml b/kubectl/taskrun.yaml index 4079e50c08..8086fb5d70 100644 --- a/kubectl/taskrun.yaml +++ b/kubectl/taskrun.yaml @@ -17,7 +17,7 @@ spec: - name: job-name valueFrom: '{.metadata.name}' - name: job-namespace - valueFrom: '{.metadata.namespace}' + valueFrom: '{.metadata.namespace}' - name: set-ownerreference value: "true" - name: manifest diff --git a/maven/maven.yaml b/maven/maven.yaml index ff2a4262a0..f20beee136 100644 --- a/maven/maven.yaml +++ b/maven/maven.yaml @@ -13,7 +13,7 @@ spec: default: - "package" - name: MAVEN_MIRROR_URL - description: The Maven repository mirror url + description: The Maven repository mirror url type: string default: "" - name: PROXY_USER diff --git a/openshift-provision/openshift-cluster-create.yaml b/openshift-provision/openshift-cluster-create.yaml index b793d12b8b..7f648db3ca 100644 --- a/openshift-provision/openshift-cluster-create.yaml +++ b/openshift-provision/openshift-cluster-create.yaml @@ -31,7 +31,7 @@ spec: - name: OPENSHIFT_INSTALLER_IMAGE type: string description: OpenShift installer base image for UPI installation - default: quay.io/openshift/origin-upi-installer:4.4 + default: quay.io/openshift/origin-upi-installer:4.4 steps: - name: openshift-install-config image: registry.access.redhat.com/ubi8/ubi-minimal:latest @@ -89,7 +89,7 @@ spec: EOF [[ -f install-config.yaml ]] && cat install-config.yaml - + env: - name: PULL_SECRET valueFrom: @@ -101,7 +101,7 @@ spec: secretKeyRef: name: openshift-install key: public-ssh-key - + - name: openshift-cluster-create workingDir: $(workspaces.install-dir.path) image: $(params.OPENSHIFT_INSTALLER_IMAGE) diff --git a/prettier/tests/run.yaml b/prettier/tests/run.yaml index a203f85556..174c478bf2 100644 --- a/prettier/tests/run.yaml +++ b/prettier/tests/run.yaml @@ -6,7 +6,7 @@ metadata: spec: workspaces: - name: shared-workspace - # description: The git repo will be cloned into this workspace and the config-defaults.yaml will be read from it. + # description: The git repo will be cloned into this workspace and the config-defaults.yaml will be read from it. tasks: - name: fetch-repo taskRef: @@ -27,10 +27,10 @@ spec: workspaces: - name: source workspace: shared-workspace - params: + params: - name: args - value: - - --write + value: + - --write - "golang/build.yaml" --- apiVersion: tekton.dev/v1beta1 diff --git a/replace-tokens/tests/run.yaml b/replace-tokens/tests/run.yaml index fa68f5c729..762cca1a8f 100644 --- a/replace-tokens/tests/run.yaml +++ b/replace-tokens/tests/run.yaml @@ -46,5 +46,5 @@ spec: persistentvolumeclaim: claimName: replace-tokens-source-pvc - name: json-workspace - configmap: - name: tokens-configmap \ No newline at end of file + configmap: + name: tokens-configmap diff --git a/skopeo/skopeo.yaml b/skopeo/skopeo.yaml index 0f291934a7..60804744f9 100644 --- a/skopeo/skopeo.yaml +++ b/skopeo/skopeo.yaml @@ -23,11 +23,11 @@ spec: copyimages() { filename='$(workspaces.images-url.path)/url.txt' while IFS= read line || [ -n "$line" ] - do + do cmd="" for url in $line do - # echo $url + # echo $url cmd="$cmd \ $url" done @@ -44,4 +44,4 @@ spec: # If file is provided as a configmap in the workspace then multiple images can be copied. # copyimages - fi \ No newline at end of file + fi diff --git a/telegrammessage/send-to-telegram.yaml b/telegrammessage/send-to-telegram.yaml index d6b748ec1b..f7c16cae9b 100644 --- a/telegrammessage/send-to-telegram.yaml +++ b/telegrammessage/send-to-telegram.yaml @@ -6,7 +6,7 @@ spec: params: - name: bot-token-secret type: string - description: Token of the bot through + description: Token of the bot through - name: chat-id type: string description: ID of the chat to send the message towards @@ -30,4 +30,4 @@ spec: - name: CHAT_ID value: $(params.chat-id) - name: MESSAGE - value: $(params.message) \ No newline at end of file + value: $(params.message) diff --git a/wget/tests/run.yaml b/wget/tests/run.yaml index 92f3cbbcdf..5f38633d0c 100644 --- a/wget/tests/run.yaml +++ b/wget/tests/run.yaml @@ -14,5 +14,3 @@ spec: workspaces: - name: wget-workspace emptyDir: {} - - diff --git a/wget/wget.yaml b/wget/wget.yaml index f8f933721a..fc88fce178 100644 --- a/wget/wget.yaml +++ b/wget/wget.yaml @@ -4,31 +4,31 @@ metadata: name: wget spec: params: - - name: url - description: The url we want to download file from - type: string - default: "" - - name: diroptions - description: The directory path we want to save file to - type: array - default: [] - - name: options - description: The arguments to pass to wget - type: array - default: [] - - name: filename - description: The filename we want to change our file to - type: string - default: "" - - name: wget-option - description: The wget docker image to be used - type: string - default: "buildpack-deps:stable-curl" + - name: url + description: The url we want to download file from + type: string + default: "" + - name: diroptions + description: The directory path we want to save file to + type: array + default: [] + - name: options + description: The arguments to pass to wget + type: array + default: [] + - name: filename + description: The filename we want to change our file to + type: string + default: "" + - name: wget-option + description: The wget docker image to be used + type: string + default: "buildpack-deps:stable-curl" workspaces: - - name: wget-workspace - description: The folder where we write the wget'ed file to + - name: wget-workspace + description: The folder where we write the wget'ed file to steps: - - name: wget - image: "$(params.wget-option)" - command: [wget] - args: ["$(params.options[*])", "$(params.url)", "$(params.diroptions[*])", "$(workspaces.wget-workspace.path)/$(params.filename)"] + - name: wget + image: "$(params.wget-option)" + command: [wget] + args: ["$(params.options[*])", "$(params.url)", "$(params.diroptions[*])", "$(workspaces.wget-workspace.path)/$(params.filename)"]