radius-project / radius

Radius is a cloud-native, portable application platform that makes app development easier for teams building cloud-native apps.
https://radapp.io
Apache License 2.0
1.48k stars 95 forks source link

Consider improving Kubernetes labeling for environment-scoped resources #3130

Open rynowak opened 2 years ago

rynowak commented 2 years ago

When we have an environment-scoped resource (eg: Applications.Connector/daprPubSubBroker) at environment scope, we generate labels like the following in Kubernetes:

      app.kubernetes.io/managed-by: radius-rp
      app.kubernetes.io/name: pubsub
      app.kubernetes.io/part-of: ""
      radius.dev/application: ""
      radius.dev/resource: pubsub

The application is blank for this case, so we end up with a blank radius.dev/application and a blank app.kubernetes.io/part-of.

I don't think that we've reviewed this behavior when we added environment-scoped resources, it's just a consequence of having a blank application field.

We have some options here:

AB#6964

emily-potyraj commented 2 years ago

triage note: proposed for v0.13