-
Notifications
You must be signed in to change notification settings - Fork 80
[Feature] Proper defaulting labels for metadata of workload #174
Comments
Why do we need this when the name is already in the meta?
What revision is this? It looks like it's not the component revision number. |
@ryanzhang-oss These labels are all component's info, not workload, I've updated the label key and example. |
This is an important issue, with this label, trait can find underlying pods easily. It's helpful at least for below two cases:
What's more, any trait can rely on K8s Besides these to labes:
I propose we add one more to indicate which AppConfig instance it is:
|
Not sure how about For other points, agree. |
For ContainerizedWorkload, the labels of the workload can be propagated to deployments and pods, but for other non-core workloads, like deployment, the labels could not be automatically generated for its pods (#184 in details). So need to find a way to propagate all workloads' labels to pod template. |
Is your feature request related to a problem? Please describe.
As discussed in: #136, OAM runtime should automatically generate labels for Workload (ref: k8s recommend labels) so Trait can choose to select the workload by leveraging these default labels if they don't want to define things like
app: nginx
.I'd propose several auto labels below:
How to use these lables:
Note that this proposal relies on: https://github.com/crossplane/oam-kubernetes-runtime/pull/175/files
The text was updated successfully, but these errors were encountered: