github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-render/selectors/basicpipeline/.expected/diff.patch (about) 1 diff --git a/Kptfile b/Kptfile 2 index bd6b879..18fe74e 100644 3 --- a/Kptfile 4 +++ b/Kptfile 5 @@ -2,6 +2,8 @@ apiVersion: kpt.dev/v1 6 kind: Kptfile 7 metadata: 8 name: app 9 + labels: 10 + tier: backend 11 pipeline: 12 mutators: 13 - image: gcr.io/kpt-fn/set-namespace:v0.1.3 14 diff --git a/resources.yaml b/resources.yaml 15 index 7a494c9..1d36135 100644 16 --- a/resources.yaml 17 +++ b/resources.yaml 18 @@ -15,12 +15,24 @@ apiVersion: apps/v1 19 kind: Deployment 20 metadata: 21 name: nginx-deployment 22 + namespace: staging 23 + labels: 24 + tier: backend 25 spec: 26 replicas: 3 27 + selector: 28 + matchLabels: 29 + tier: backend 30 + template: 31 + metadata: 32 + labels: 33 + tier: backend 34 --- 35 apiVersion: custom.io/v1 36 kind: Custom 37 metadata: 38 name: custom 39 + labels: 40 + tier: backend 41 spec: 42 image: nginx:1.2.3