Skip to content

Fix trailing spaces in openshift-client task#1368

Open
vdemeester wants to merge 1 commit intomainfrom
fix-trailing-spaces-openshift-client
Open

Fix trailing spaces in openshift-client task#1368
vdemeester wants to merge 1 commit intomainfrom
fix-trailing-spaces-openshift-client

Conversation

@vdemeester
Copy link
Member

Changes

Fix pre-existing trailing whitespace on lines 46, 59, and 61 of
task/openshift-client/0.2/openshift-client.yaml that causes the
yamllint CI check to fail with trailing-spaces errors on all PRs
touching this repository.

The three affected lines were blank/empty lines inside the results
block and script block that had invisible trailing spaces. Removed
with sed.

Submitter Checklist

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from vdemeester after the PR has been reviewed.

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

Details 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

@vdemeester
Copy link
Member Author

/kind cleanup

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 6, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: vdemeester / name: Vincent Demeester (2bfe08b)

@tekton-robot tekton-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 6, 2026
@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 ...

Fix yamllint errors (trailing-spaces) on lines 46, 59, 61 that
cause CI lint to fail on all PRs.

/kind cleanup
@vdemeester vdemeester force-pushed the fix-trailing-spaces-openshift-client branch from 3403b95 to 2bfe08b Compare March 6, 2026 16:27
@tekton-robot
Copy link

The following Tekton test failed:

Test name Commit Details Required Rerun command
pull-catalog-catlin-lint 2bfe08b 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 ...

@chmouel
Copy link
Member

chmouel commented Mar 9, 2026

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants