Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update openshift-client.yaml with optional results field #1301

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shrubberer
Copy link

@Shrubberer Shrubberer commented Sep 17, 2024

Added a results field with an optional RESULT to emit output for use in pipeline or next tasks. The default value is set to an empty string according to TEP-0048: Task Results without Results.

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Follows the authoring recommendations
  • Includes docs (if user facing)
  • Includes tests (for new tasks or changed functionality)
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Commit messages follow commit message best practices
  • Has a kind label. You can add one by adding a comment on this PR that
    contains /kind <type>. Valid types are bug, cleanup, design, documentation,
    feature, flake, misc, question, tep
  • Complies with Catalog Organization TEP, see example. Note An issue has been filed to automate this validation
    • File path follows <kind>/<name>/<version>/name.yaml

    • Has README.md at <kind>/<name>/<version>/README.md

    • Has mandatory metadata.labels - app.kubernetes.io/version the same as the <version> of the resource

    • Has mandatory metadata.annotations tekton.dev/pipelines.minVersion

    • mandatory spec.description follows the convention

        ```
      
        spec:
          description: >-
            one line summary of the resource
      
            Paragraph(s) to describe the resource.
        ```
      

See the contribution guide for more details.

Added a results field with an optional RESULT to emit output for use in pipeline or next tasks.
The default value is set to an empty string according to TEP-0048: Task Results without Results.
Copy link

CLA Not Signed

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign piyush-garg after the PR has been reviewed.
You can assign the PR to them by writing /assign @piyush-garg in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot
Copy link

Hi @Shrubberer. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot tekton-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 17, 2024
@tekton-robot
Copy link

The following Tekton test failed:

Test name Commit Details Required Rerun command
pull-catalog-catlin-lint 99ec25a link true /test pull-catalog-catlin-lint

@tekton-robot
Copy link

Catlin Output
FILE: task/openshift-client/0.2/openshift-client.yaml
WARN : Step "oc" uses image "quay.io/openshift/origin-cli:$(params.VERSION)" that contains variables; skipping validation
Catlin script lint Output
ERROR: /usr/bin/shellcheck, [-s bash] failed:

In openshift-client-oc line 4:
cd $(workspaces.manifest-dir.path)
^-- SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
   ^-----------------------------^ SC2046 (warning): Quote this to prevent word splitting.

Did you mean: 
cd $(workspaces.manifest-dir.path) || exit


In openshift-client-oc line 8:
export KUBECONFIG=$(workspaces.kubeconfig-dir.path)/kubeconfig
       ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values.


In openshift-client-oc line 10:
echo "" > $(results.RESULT.path)
          ^--------------------^ SC2046 (warning): Quote this to prevent word splitting.


In openshift-client-oc line 12:
$(params.SCRIPT)
^--------------^ SC2091 (warning): Remove surrounding $() to avoid executing output (or use eval if intentional).

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2091 -- Remove surrounding $() to avoid e...
  https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...

@vinamra28
Copy link
Member

hi @Shrubberer, can you please sign the CLA?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants