-
Notifications
You must be signed in to change notification settings - Fork 80
[Feature] Automatically fill correlation fields for users #181
Comments
@hongchaodeng one possible solution may be "mark" the selector filed path in definition object and let OAM runtime to inject required information (similar to a patch trait). |
I think these two cases are actually different. |
@ryanzhang-oss The second case is actually not a dependency issue, it's a discover issue. I'd propose OAM runtime automatically generate Services for a given component based on its revision history and expose all its ports. Let's say below component has 2 revisions: apiVersion: core.oam.dev/v1alpha2
kind: Component
metadata:
name: frontend
spec:
workload:
...
spec:
image: nginx
port: 80 $ kubectl get deployments
NAME
frontend-v1
frontend-v2 Then three Services should be in the system $ kubectl get svc
NAME
frontend # this one always select the pods labeled by "frontend
frontend-v1 # this one only select pods labeled by "frontend and "v1"
frontend-v2 # this one only select pods labeled by "frontend and "v2" So traits are free to use these Service names to do their job. This is closely related to #174 |
Btw, for end users they should not use ingress or service at all. So the target solution for this issue should focus on how to let users plug-in their own traits with zero effort. Another missing use case we should also cover is: |
Currently, if we want to deploy an OAM app, it still requires filling fields like label selector or serviceName:
The label selector in Service and serviceName/Port in Ingress could be automatically inferred in the context of appconfig. A user should ultimately save the effort and just write:
The text was updated successfully, but these errors were encountered: