Skip to content

WIP: Attempt at adding a plugin sub-cmd#1136

Closed
sthaha wants to merge 1 commit intotektoncd:masterfrom
sthaha:plugin-support
Closed

WIP: Attempt at adding a plugin sub-cmd#1136
sthaha wants to merge 1 commit intotektoncd:masterfrom
sthaha:plugin-support

Conversation

@sthaha
Copy link
Copy Markdown
Member

@sthaha sthaha commented Aug 20, 2020

Changes

This is only a POC that adds a plugin extension model like kubectl (tested only on linux)

Submitter Checklist

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

  • [🙅‍♂️ ] Includes tests (if functionality changed/added)
  • [🙅‍♂️ ] Run the code checkers with make check
  • [🙅‍♂️ ] Regenerate the manpages, docs and go formatting with make generated
  • [🙅‍♂️ ] Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

Fixes: tektoncd#1039
Signed-off-by: Sunil Thaha <sthaha@redhat.com>
@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Aug 20, 2020
@tekton-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 20, 2020
Comment thread cmd/tkn/main.go

errX := syscall.Exec(exCmd, append([]string{exCmd}, os.Args[2:]...), os.Environ())
log.Printf("Command finished with error: %v", errX)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should exit with the sub process exit code shouldn't we ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

absolutely!

@vdemeester vdemeester mentioned this pull request Sep 18, 2020
4 tasks
@vdemeester
Copy link
Copy Markdown
Member

Closing in favor of #1178
(Which carry this one)
/close

@tekton-robot
Copy link
Copy Markdown
Contributor

@vdemeester: Closed this PR.

Details

In response to this:

Closing in favor of #1178
(Which carry this one)
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants