-
Notifications
You must be signed in to change notification settings - Fork 249
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
Add workspace option to pipeline start #826
Conversation
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
/test pull-tekton-cli-integration-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
- I think it should be
--workspace
instead--workspaces
(same way we haveresource
andparam
) - On validation, I think we need to do more: what happens if I use
--workspace name=foo,config=rpg,item=foo,secret=my-secret
? or if I don't useitem
forconfig
?
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
d17ff7d
to
3264e2a
Compare
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
/test pull-tekton-cli-build-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can still do this :
tkn pipeline start cli-release-pipeline --workspace name=waw,secret=secret-name,config=rpg,item=ultimav=1
Which create this workspace…
workspaces:
- configMap:
items:
- key: ultimav
path: "1"
name: rpg
name: waw
… which should probably error out instead of silently go.
Add option to set emptydir, pvc, secret and config as workspaces.
The following is the coverage report on pkg/.
|
@vdemeester Done. |
@@ -0,0 +1,239 @@ | |||
// Copyright © 2019 The Tekton Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be
// Copyright © 2019 The Tekton Authors. | |
// Copyright © 2020 The Tekton Authors. |
🤔
@@ -0,0 +1,161 @@ | |||
// Copyright © 2019 The Tekton Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Copyright © 2019 The Tekton Authors. | |
// Copyright © 2020 The Tekton Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With @savitaashture's suggestion LGTM 👍
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sthaha, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-tekton-cli-unit-tests |
Add option to set emptydir, pvc, secret and config as workspaces.
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.