github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-render/fnconfig-updated-in-render/.expected/diff.patch (about) 1 diff --git a/Kptfile b/Kptfile 2 index 4da4f76..bdc385f 100644 3 --- a/Kptfile 4 +++ b/Kptfile 5 @@ -3,7 +3,7 @@ kind: Kptfile 6 metadata: 7 name: frontend 8 labels: 9 - app.kubernetes.io/app: example 10 + app.kubernetes.io/app: frontend 11 annotations: 12 config.kubernetes.io/local-config: "true" 13 info: 14 diff --git a/app.yaml b/app.yaml 15 index 3361e5b..33f2627 100644 16 --- a/app.yaml 17 +++ b/app.yaml 18 @@ -2,9 +2,9 @@ apiVersion: apps/v1 19 kind: Deployment 20 metadata: # kpt-merge: example/deployment 21 name: deployment 22 - namespace: example 23 + namespace: frontend 24 labels: 25 - app.kubernetes.io/app: example 26 + app.kubernetes.io/app: frontend 27 spec: 28 replicas: 3 29 template: 30 @@ -16,7 +16,7 @@ spec: 31 - containerPort: 80 32 metadata: 33 labels: 34 - app.kubernetes.io/app: example 35 + app.kubernetes.io/app: frontend 36 selector: 37 matchLabels: 38 - app.kubernetes.io/app: example 39 + app.kubernetes.io/app: frontend 40 diff --git a/label-input.yaml b/label-input.yaml 41 index 26dab6c..cdff6e0 100644 42 --- a/label-input.yaml 43 +++ b/label-input.yaml 44 @@ -5,6 +5,6 @@ metadata: # kpt-merge: /label-input 45 annotations: 46 config.kubernetes.io/local-config: "true" 47 labels: 48 - app.kubernetes.io/app: example 49 + app.kubernetes.io/app: frontend 50 data: 51 - app.kubernetes.io/app: example 52 + app.kubernetes.io/app: frontend 53 diff --git a/namespace.yaml b/namespace.yaml 54 index 9db1da3..e112378 100644 55 --- a/namespace.yaml 56 +++ b/namespace.yaml 57 @@ -1,7 +1,7 @@ 58 apiVersion: v1 59 kind: Namespace 60 metadata: # kpt-merge: /example 61 - name: example 62 + name: frontend 63 labels: 64 - app.kubernetes.io/app: example 65 + app.kubernetes.io/app: frontend 66 spec: {} 67 diff --git a/package-context.yaml b/package-context.yaml 68 index 2340959..bbf7167 100644 69 --- a/package-context.yaml 70 +++ b/package-context.yaml 71 @@ -4,5 +4,7 @@ metadata: 72 name: kptfile.kpt.dev 73 annotations: 74 config.kubernetes.io/local-config: "true" 75 + labels: 76 + app.kubernetes.io/app: frontend 77 data: 78 name: frontend 79 diff --git a/update-labels.yaml b/update-labels.yaml 80 index 7aae6c7..cabf787 100644 81 --- a/update-labels.yaml 82 +++ b/update-labels.yaml 83 @@ -5,7 +5,7 @@ metadata: # kpt-merge: /update-labels 84 annotations: 85 config.kubernetes.io/local-config: "true" 86 labels: 87 - app.kubernetes.io/app: example 88 + app.kubernetes.io/app: frontend 89 replacements: 90 - source: 91 kind: ConfigMap