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

"Faas" scenario — create a trigger alongside its source. #593

Closed
wants to merge 10 commits into from

Conversation

sixolet
Copy link
Contributor

@sixolet sixolet commented Dec 26, 2019

This only so far handles the non-plugin source creation, but it's a start.

NB: based on #574 — MERGE THAT FIRST then rebase -i.

To do in this PR before merging:

  • Add ceOverrides.knsourcetrigger / filter.knsourcetrigger matching attributes to both source and trigger.
  • Create trigger before source.
  • Add dependency attribute to trigger
  • Add owner reference to source
  • Add --async flag, and do an appropriate wait for readiness (ignore unready due to dependency not yet present)
  • Tests
  • Changelog

To do outside this PR:

  • Merge PR Allow for http and broker sinks #574 for the broker allowed as a sink targer
  • Make flag for ceOverrides setting in sources
  • Make hidden flag for setting owner reference in sources.

Fixes #498

@sixolet sixolet added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. topic/eventing-mvp labels Dec 26, 2019
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 26, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Dec 26, 2019
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 26, 2019
@sixolet sixolet added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 26, 2019
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-client-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/dynamic/client.go 90.9% 83.3% -7.6
pkg/kn/commands/flags/sink.go 0.0% 78.3% 78.3
pkg/kn/commands/source/cronjob/create.go 92.0% 89.3% -2.7
pkg/kn/commands/source/cronjob/update.go 75.8% 75.0% -0.8
pkg/kn/commands/trigger/create.go 82.5% 67.3% -15.2
pkg/kn/commands/trigger/update_flags.go 96.7% 96.8% 0.1
pkg/serving/service.go 90.6% 89.7% -1.0

@knative-prow-robot
Copy link
Contributor

@sixolet: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-knative-client-build-tests 7c71f0f link /test pull-knative-client-build-tests

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@rhuss
Copy link
Contributor

rhuss commented Jan 7, 2020

@sixolet Is this PR ready for a review or would make it sense to review it later when more tasks from the list above are implemented ?

@sixolet
Copy link
Contributor Author

sixolet commented Jan 7, 2020 via email

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maximilien, sixolet

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@maximilien
Copy link
Contributor

You also need to rebase. Best.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 25, 2020
@knative-prow-robot
Copy link
Contributor

@sixolet: PR needs rebase.

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.

coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
@rhuss
Copy link
Contributor

rhuss commented Jun 19, 2020

@sixolet where do we stand with this PR ? Do you want to continue to work on this "FaaS" direction now replaced the direction the Functions WG is heading to ?

@rhuss
Copy link
Contributor

rhuss commented Jul 7, 2020

@sixolet This PR needs probably a lot of love to be aligned with the main branch, so it's probably better to start afresh.

If you don't mind and if you don't have any objections until next Tuesday, I would close the PR then.

@rhuss rhuss added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 7, 2020
@rhuss
Copy link
Contributor

rhuss commented Jul 14, 2020

Closing, for now, feel free to reopen in case.

@rhuss rhuss closed this Jul 14, 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. cla: yes Indicates the PR's author has signed the CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kn trigger create - create a source implicitely (based on #479)
6 participants