Closed Nalum closed 10 months ago
@Nalum please see https://github.com/stefanprodan/timoni/pull/270 that exposes the selector directly from Metadata without the need for an extra helper. Also in your example above, you set the template labels to the metadata.labels, but these should be set to the selector value.
Happy to close this in favor of the changes you've setup in #270.
This PR adds a generator for Kubernetes object selectors that will inject the
app.kubernetes.io/component
label to the selector. The example below makes use of the#MetaComponent
introduce in #270.Example: