Comments (14)
Hi @tpiperatgod @benjaminhuo I'd like to try :)
from openfunction.
What does sink.ref looks like now?
from openfunction.
like this:
apiVersion: serving.knative.dev/v1
kind: Service
name: serving-d2blp-ksvc-2hbp6
namespace: default
from openfunction.
like this:
apiVersion: serving.knative.dev/v1 kind: Service name: serving-d2blp-ksvc-2hbp6 namespace: default
The sink could be function, not knative service
It's more user friendly to user maybe
from openfunction.
The solutions are as follows:
type SinkSpec struct {
Ref *Reference `json:"ref,omitempty"`
Uri *string `json:"uri,omitempty"`
}
type Reference struct {
Kind string `json:"kind"`
Namespace string `json:"namespace,omitempty"`
Name string `json:"name"`
APIVersion string `json:"apiVersion"`
}
Reference
provides references to Knative Service and Function resources from which to retrieve function URLs
Uri
is used to pass the URL directly
When using the Sink
, you must use one of these attributes, and in priority Uri
> Reference
Another approach is to deprecate the reference to the Knative Service and use only the Function:
type SinkSpec struct {
// Namespace of the Function
Namespace string `json:"namespace,omitempty"`
// Name of the Function
Name string `json:"name"`
}
from openfunction.
@arugal That's great!
from openfunction.
The solutions are as follows:
type SinkSpec struct { Ref *Reference `json:"ref,omitempty"` Uri *string `json:"uri,omitempty"` } type Reference struct { Kind string `json:"kind"` Namespace string `json:"namespace,omitempty"` Name string `json:"name"` APIVersion string `json:"apiVersion"` }
Reference
provides references to Knative Service and Function resources from which to retrieve function URLsUri
is used to pass the URL directlyWhen using the
Sink
, you must use one of these attributes, and in priorityUri
>Reference
Another approach is to deprecate the reference to the Knative Service and use only the Function:
type SinkSpec struct { // Namespace of the Function Namespace string `json:"namespace,omitempty"` // Name of the Function Name string `json:"name"` }
Sounds good!
from openfunction.
I prefer the first solution because it might be a bit more generic 🤔 what do you think?
from openfunction.
The solutions are as follows:
type SinkSpec struct { Ref *Reference `json:"ref,omitempty"` Uri *string `json:"uri,omitempty"` } type Reference struct { Kind string `json:"kind"` Namespace string `json:"namespace,omitempty"` Name string `json:"name"` APIVersion string `json:"apiVersion"` }
Reference
provides references to Knative Service and Function resources from which to retrieve function URLsUri
is used to pass the URL directlyWhen using the
Sink
, you must use one of these attributes, and in priorityUri
>Reference
@tpiperatgod Is this?
from openfunction.
The solutions are as follows:
type SinkSpec struct { Ref *Reference `json:"ref,omitempty"` Uri *string `json:"uri,omitempty"` } type Reference struct { Kind string `json:"kind"` Namespace string `json:"namespace,omitempty"` Name string `json:"name"` APIVersion string `json:"apiVersion"` }
Reference
provides references to Knative Service and Function resources from which to retrieve function URLsUri
is used to pass the URL directly
When using theSink
, you must use one of these attributes, and in priorityUri
>Reference
@tpiperatgod Is this?
yes
from openfunction.
The first one looks ok
from openfunction.
https://github.com/OpenFunction/OpenFunction/blob/main/controllers/events/event.go#L177
When the URI
is set, use ts-%s ts-{resourceName}
as the component name template, what do you think? @tpiperatgod @benjaminhuo
from openfunction.
https://github.com/OpenFunction/OpenFunction/blob/main/controllers/events/event.go#L177
When the
URI
is set, usets-%s ts-{resourceName}
as the component name template, what do you think? @tpiperatgod @benjaminhuo
I think it's ok.
from openfunction.
https://github.com/OpenFunction/OpenFunction/blob/main/controllers/events/event.go#L177
The component's namespace could also be the same as the EventSource(resource)
from openfunction.
Related Issues (20)
- cloud-native serverless workflow in openfunction HOT 1
- OpenFunction 1.20 install fail HOT 2
- OpenFunction 1.2.0 imageCredentials pull private images fail HOT 2
- images pull failed HOT 2
- When the function is published, there will be a brief service unavailability HOT 1
- The version of the function is wrong when publishing with the specified function tag. HOT 7
- Adjust the conditions of gateway default listener HOT 2
- 关于 openfunction 异步任务的一些问题 HOT 2
- Failed to install using Helm on EKS HOT 5
- Is OpenFunction compatible with ARM architectures? Like Mac M1s? HOT 4
- How to install openfunction v1.0.0 ? HOT 2
- Build multiarch images
- In dapr standalone mode, keda scaling doesn't work
- Allow Dapr to use http protocol for functions HOT 1
- Consider the use of Dapr Shared for Dapr in standalone mode HOT 2
- Gateway Domain HOT 2
- Bulk Event Processing
- Some yaml files and md documents still remain core in v1beta1 format
- When will the new version be issued? HOT 7
- Report the use of components with vulnerabilities in OpenFunction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfunction.