mirror of
https://github.com/fluxcd/flux2.git
synced 2025-10-28 23:14:48 +08: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>
14 lines
292 B
YAML
14 lines
292 B
YAML
apiVersion: builtin
|
|
kind: LabelTransformer
|
|
metadata:
|
|
name: labels
|
|
labels:
|
|
app.kubernetes.io/component: source-controller
|
|
app.kubernetes.io/part-of: flux
|
|
fieldSpecs:
|
|
- path: metadata/labels
|
|
create: true
|
|
- kind: Deployment
|
|
path: spec/template/metadata/labels
|
|
create: true
|