-
Notifications
You must be signed in to change notification settings - Fork 80
How do we handle target reference fields and labels? #136
Comments
For For |
@wonderflow this issue is about whether we want to inject (and how to inject) such information to user brought capabilities (Service, HPA, their own Operators etc), so they don't need to define these fields/labels manually. |
The reason why k8s has labeling and object reference in the first place is because it is designed to be loosely coupled resource model:
For 1), OAM has provided an application centric structure to organize resources, which is higher level than labeling. We should definitely replace labeling and handle labeling and selector for users. For 2), it is already a flaw in APIServer design. We should definitely hide it from users. |
@wonderflow That being said, it's indeed necessary to automatically add labels to OAM workloads and traits. Could you please raise a separate issue for this? I'd guess https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ could be considered. |
@resouer sure, I'm considering to write a proposal for that |
In OAM, the target reference fields or label selectors do not make a lot sense. For example, consider these traits below:
All these label
selector
andscaleTargetRef
can be generated by OAM runtime since OAM clearly know which workload it bound to (AWS folks call this "intention driven").So the question is can we do and will we do this for users?
Several approaches if we want to do this:
Expose
.Any thoughts? @hongchaodeng @wonderflow @zzxwill @ryanzhang-oss
The text was updated successfully, but these errors were encountered: