Code Monkey home page Code Monkey logo

Comments (11)

bobcatfish avatar bobcatfish commented on May 28, 2024

This is the design doc for both templating and references, shared with members of knative-dev@.

from pipeline.

bobcatfish avatar bobcatfish commented on May 28, 2024

/assign @dlorenc
/meow space

from pipeline.

knative-prow-robot avatar knative-prow-robot commented on May 28, 2024

@bobcatfish: cat image

In response to this:

/assign @dlorenc
/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.

from pipeline.

nader-ziada avatar nader-ziada commented on May 28, 2024

@bobcatfish should this issue be closed? I think its done now by the above PRs

from pipeline.

bobcatfish avatar bobcatfish commented on May 28, 2024

I think that actually templating with a Task's outputs still isn't implemented 🤔 But i think @dlorenc has a branch with this fixed so we can nearly close this...

from pipeline.

bobcatfish avatar bobcatfish commented on May 28, 2024

The other thing still missing is applying any templating at a Pipeline level.

from pipeline.

dlorenc avatar dlorenc commented on May 28, 2024

Can this be closed now?

from pipeline.

bobcatfish avatar bobcatfish commented on May 28, 2024

Only use case left is when you provide templating via a Pipeline:

kind: Pipeline
...
- name: deploy-bundle-test
  taskRef:
    name: deploy-with-kubectl
  inputSourceBindings:
  - name: workspace
    key: guestbook    
  - name: myImage
    key: redis-docker
    passedConstraint:
    - build-push
  params:
  - name: labels
    value: "${myImage.digest}@${workspace.revision}"

In the end the value should be expanded

from pipeline.

dlorenc avatar dlorenc commented on May 28, 2024

So I'm not 100% sure of the best way to test this. I added a test case to show that the PipelineRun reconciler does not expand these and will pass them to the TaskRun controller, and we have TaskRun tests that show they get expanded. But that doesn't feel very satisifying...

from pipeline.

abayer avatar abayer commented on May 28, 2024

At first glance, at least, that sounds like a reasonable set of tests to me.

from pipeline.

bobcatfish avatar bobcatfish commented on May 28, 2024

I added a test case to show that the PipelineRun reconciler does not expand these and will pass them to the TaskRun controller, and we have TaskRun tests that show they get expanded. But that doesn't feel very satisifying...

I hear you! I can't think of anything better at the moment - we could have an integration tests that passes the whole thing in and makes sure the right thing comes out, but that sounds pretty rough.

I was looking at some of the kubebuilder stuff today with @pwittrock and the integration tests it generates, which can instantiate the controllers and api server locally, could be an interesting way to test something like this.

That being said it kinda feels like overkill!

TL;DR: @dlorenc I think either add the test you've described or just decide it's not worth covering and leave it as is.

from pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.