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

Remove PipelineParams #282

Merged
merged 2 commits into from
Nov 30, 2018
Merged

Conversation

nader-ziada
Copy link
Member

@nader-ziada nader-ziada commented Nov 29, 2018

The goal of this PR is to start a discussion about removing PipelineParams and moving its contents to PipelineRun.

In case we decide we want to do that, this is what things would look like

Proposed changes

  • Move ServiceAccount and Results to PipelineRun

Fixes: #121

@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Nov 29, 2018
@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pivotal-nader-ziada

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:
  • OWNERS [pivotal-nader-ziada]

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 29, 2018
@nader-ziada
Copy link
Member Author

/cc @bobcatfish
What do you think?

@nader-ziada
Copy link
Member Author

/hold

until we discuss and decide what we want to do

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 29, 2018
@bobcatfish
Copy link
Collaborator

Exciting! I'm defintiely all for moving the service account

I'm not sure about the results tho - i think it depends on how frequently we expect this to change. my preference would be to rename pipelineparams to something like ResultsConfig and leave the results stuff there - @tejal29 will probably have some opinions about how to handle this when she's back but @aaron-prindle might be able to weigh in as well

p.s. this should address #121 can i assign that one to you @pivotal-nader-ziada ? :D

@nader-ziada
Copy link
Member Author

I was thinking the results would be part of the runtime (pipelineRun) because you would change it to run in your own environment without having to change the original pipeline. You might also need to change it with every run if you want to keep history depending on how it will be implemented.
Also I prefer to have less files to deal with as a user building/running a pipeline, having a file for the results location only seems like something that should be simplified

@bobcatfish yes assign me the issue :)

Runs ResultTarget `json:"runs"`

// Logs will store all logs output from running a task.
Logs ResultTarget `json:"logs"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

while we're at it, why don't we simplify this and get rid of Tests and Runs? Discussions with @tejal29 indicated that we might treat Tests like a type of resource instead, and it's not clear how we'll use Runs

(sorry for the scope creep!!)

@bobcatfish
Copy link
Collaborator

You might also need to change it with every run if you want to keep history depending on how it will be implemented.

I guess we have to see how #107 plays out!

I was assuming that the log config wouldn't change as often as some of the other Resources (e.g. git revisions) b/c you'd provide your bucket and we'd make sure we created separate dirs for each Run, etc. Maybe it'll be too hard to make that generic tho 🤔

Okay let's go ahead with this for now - we can always add back a new CRD for results if we need it for #17

@bobcatfish
Copy link
Collaborator

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 30, 2018
@bobcatfish
Copy link
Collaborator

/meow space

@knative-prow-robot
Copy link

@bobcatfish: cat image

In response to this:

/meow space

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.

@bobcatfish
Copy link
Collaborator

(feel free to remove the hold if you don't feel like removing Tests and Runs from results in this iteration)

 - Move ServiceAccount and Results to PipelineRun
Its not clear yet how runs and tests will be used, so removing them for
now. Might not be the best place to add them anyways.

Also updated examples with new fields in PipelineRun

Signed-off-by: Nader Ziada <nziada@pivotal.io>
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 30, 2018
@nader-ziada
Copy link
Member Author

/hold cancel

@bobcatfish made the changes to remove Runs and Tests, we can always add them again when we figure out more details

Please take another look

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 30, 2018
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-build-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
cmd/controller/main.go 3.5% 3.6% 0.1
pkg/apis/pipeline/v1alpha1/pipelinerun_validation.go 100.0% 88.0% -12.0
pkg/apis/pipeline/v1alpha1/taskrun_validation.go 93.3% 94.6% 1.3

@bobcatfish
Copy link
Collaborator

Thanks @pivotal-nader-ziada !

/lgtm

So long paramses!

image

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 30, 2018
@knative-prow-robot knative-prow-robot merged commit 5db4e26 into tektoncd:master Nov 30, 2018
bobcatfish added a commit to bobcatfish/pipeline that referenced this pull request Dec 6, 2018
In tektoncd#282 we removed the PipelineParams CRD but accidentally missed this
image (can't grep for it! :D).
knative-prow-robot pushed a commit that referenced this pull request Dec 6, 2018
In #282 we removed the PipelineParams CRD but accidentally missed this
image (can't grep for it! :D).
@nader-ziada nader-ziada deleted the removepp branch February 13, 2019 14:02
chmouel pushed a commit to chmouel/tektoncd-pipeline that referenced this pull request Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants