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

Request for sources.knative.dev api feedback for v1alpha2 --> v1beta1 #3295

Closed
n3wscott opened this issue Jun 8, 2020 · 18 comments
Closed
Labels
area/api area/sources priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@n3wscott
Copy link
Contributor

n3wscott commented Jun 8, 2020

We are looking at moving the sources api to v1beta1.

This is a request for any feedback or changes needed for the following resources:

  • ApiServerSource
  • ContainerSource
  • PingSource
  • SinkBinding
@n3wscott n3wscott changed the title Request for sources.knative.dev api feedback for v1alpha2 Request for sources.knative.dev api feedback for v1alpha2-->v1beta1 Jun 8, 2020
@n3wscott n3wscott changed the title Request for sources.knative.dev api feedback for v1alpha2-->v1beta1 Request for sources.knative.dev api feedback for v1alpha2 --> v1beta1 Jun 8, 2020
@lberk lberk added the area/api label Jun 8, 2020
@lberk lberk added this to the v0.16.0 milestone Jun 8, 2020
@lberk lberk added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. area/sources labels Jun 8, 2020
@rhuss
Copy link
Contributor

rhuss commented Jun 9, 2020

For the ApiServerSource there was a request to be able to filter on a resource's name with a trigger (not only the type). Not sure if this is easily possible already, but maybe the name could be added to a filterable attribute.

Also not sure if this affects the ApiServerSource resource schema at all though (or is just an implementation detail)

Otherwise, I'm not aware of any other feedback yet coming from client users (not sure also how much sources are actually used).

@rhuss
Copy link
Contributor

rhuss commented Jun 9, 2020

Beside the name of a resource, copying over the labels of resources to filterable attributes would be nice, so that you emulate a label selector for trigger filters. Maybe another attribute like mode would be interesting to influence the data that gets copied over to filterable CE attributes ?

@n3wscott
Copy link
Contributor Author

n3wscott commented Jun 9, 2020

Thanks for the feedback @rhuss, we will take a look.

@lionelvillard
Copy link
Member

For the PingSource, I have seen requests for supporting firing the event once on a specific date. OpenWhisk (among others) supports it: https://github.com/apache/openwhisk-package-alarms

@lionelvillard
Copy link
Member

we also need to support timezone

@matzew
Copy link
Member

matzew commented Jun 19, 2020

we also need to support timezone

do we really need that on the pingsource ?

@matzew
Copy link
Member

matzew commented Jun 19, 2020

For the PingSource, I have seen requests for supporting firing the event once on a specific date. OpenWhisk (among others) supports it: https://github.com/apache/openwhisk-package-alarms

would that be a more specific use-case?

@lionelvillard
Copy link
Member

timezone is needed when triggering an event at a particular time (e.g. Every Saturday at 23:45).

would that be a more specific use-case?

It seems that's a common use-case.

@nachocano
Copy link
Contributor

@bryeung mentioned that @bharattkukreja might have some cycles to help with this.

As he is getting started in the project, I was thinking he can do simpler one(s) first, and then help more with the ones that need more changes, e.g., ApiServerSource, PingSource.

@n3wscott @lionelvillard how that sounds? ContainerSource, SinkBinding promotion to v1beta1?

@matzew
Copy link
Member

matzew commented Jun 30, 2020

Any update here, on the desired features?

@arzarif
Copy link

arzarif commented Jul 15, 2020

It would be great to be able to use ApiServerSources to extract information from remote clusters by providing a kubeconfig. Currently, an ApiServerSource can only interface the cluster it's running on.

I briefly talked to a couple of folks in the Slack channel and the idea of using a binding (something like the GithubBinding) to implement this came up. @mattmoor, @antoineco

@antoineco
Copy link
Contributor

I think the KubeconfigBinding would be a nice addition to the existing source indeed.

It doesn't have to influence the graduation to beta though. The Binding can be implemented regardless of the API version, since it applies to the Pods created by sources, and not to the source objects themselves.

@lionelvillard
Copy link
Member

Today, bindings only works with PodSpecable and APIServerSource is not. The APIServerSource implementation might use under the cover a PodSpecable per source or one for all in the same service account, but this is not available to the binding.

@capri-xiyue
Copy link
Contributor

Beside the name of a resource, copying over the labels of resources to filterable attributes would be nice, so that you emulate a label selector for trigger filters. Maybe another attribute like mode would be interesting to influence the data that gets copied over to filterable CE attributes ?

the changes seems to be data plane wise
I will start with the move to v1beta1 first, and in case we need additional fields, we can always add them.
Are you folks ok with this? @nachocano @lionelvillard

@nachocano
Copy link
Contributor

the move to v1beta1 first, and in case we need a

I'm fine with that. I think @rhuss suggestions can be handled without changing the API, is just a matter of creating a CE with more extension attributes.
Not entirely sure about the change of specifying a kubeconfig. But I think if we need to change the API for that, it will be an additive change and it should be fine.

So, I'm fine if you start with the move.
Let's hear from @lionelvillard

@lionelvillard
Copy link
Member

I agree with @nachocano. It's all additive changes so we are fine.

@capri-xiyue
Copy link
Contributor

I created a new issue to discuss the new feature requests for ApiSeverSource
#3675

@nachocano
Copy link
Contributor

Created #3785 to track the addition of kubeconfig to ApiServerSource.
Thanks everyone who provided feedback. I think we can close this issue, as we have been addressing the comments in different issues/PRs. If you think otherwise, please feel free to reopen and we can further discuss it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api area/sources priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

10 participants