mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Ensure also pods contain the relevant labels inherited from pared Deployment object, this makes it easier to select and filter the pods using the labels eg. when scraping for metrics. Signed-off-by: Jiří Pinkava <j-pi@seznam.cz>
13 lines
285 B
YAML
13 lines
285 B
YAML
apiVersion: builtin
|
|
kind: LabelTransformer
|
|
metadata:
|
|
name: labels
|
|
labels:
|
|
app.kubernetes.io/part-of: flux
|
|
app.kubernetes.io/instance: flux-system
|
|
fieldSpecs:
|
|
- path: metadata/labels
|
|
create: true
|
|
- kind: Deployment
|
|
path: spec/template/metadata/labels
|
|
create: true
|