github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-render/resource-deletion/.expected/diff.patch (about) 1 diff --git a/Kptfile b/Kptfile 2 index 6d53889..b36c49f 100644 3 --- a/Kptfile 4 +++ b/Kptfile 5 @@ -2,6 +2,9 @@ apiVersion: kpt.dev/v1 6 kind: Kptfile 7 metadata: 8 name: app 9 + namespace: staging 10 + labels: 11 + tier: backend 12 pipeline: 13 mutators: 14 - image: gcr.io/kpt-fn/starlark:v0.2.1 15 diff --git a/deployment_httpbin.yaml b/deployment_httpbin.yaml 16 deleted file mode 100644 17 index 44bfc6b..0000000 18 --- a/deployment_httpbin.yaml 19 +++ /dev/null 20 @@ -1,36 +0,0 @@ 21 -# Copyright 2021 Google LLC 22 -# 23 -# Licensed under the Apache License, Version 2.0 (the "License"); 24 -# you may not use this file except in compliance with the License. 25 -# You may obtain a copy of the License at 26 -# 27 -# http://www.apache.org/licenses/LICENSE-2.0 28 -# 29 -# Unless required by applicable law or agreed to in writing, software 30 -# distributed under the License is distributed on an "AS IS" BASIS, 31 -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 32 -# See the License for the specific language governing permissions and 33 -# limitations under the License. 34 -apiVersion: apps/v1 35 -kind: Deployment 36 -metadata: 37 - name: httpbin 38 - namespace: staging 39 - labels: 40 - app: backend 41 - tier: db 42 -spec: 43 - replicas: 4 44 - selector: 45 - matchLabels: 46 - app: backend 47 - tier: db 48 - template: 49 - metadata: 50 - labels: 51 - app: backend 52 - tier: db 53 - spec: 54 - containers: 55 - - name: httpbin 56 - image: kennethreitz/httpbin 57 diff --git a/resources.yaml b/resources.yaml 58 index 7a494c9..a9dd224 100644 59 --- a/resources.yaml 60 +++ b/resources.yaml 61 @@ -15,12 +15,25 @@ apiVersion: apps/v1 62 kind: Deployment 63 metadata: 64 name: nginx-deployment 65 + namespace: staging 66 + labels: 67 + tier: backend 68 spec: 69 replicas: 3 70 + selector: 71 + matchLabels: 72 + tier: backend 73 + template: 74 + metadata: 75 + labels: 76 + tier: backend 77 --- 78 apiVersion: custom.io/v1 79 kind: Custom 80 metadata: 81 name: custom 82 + namespace: staging 83 + labels: 84 + tier: backend 85 spec: 86 image: nginx:1.2.3 87 diff --git a/starlark-httpbin.yaml b/starlark-httpbin.yaml 88 index 3de07cf..0d96dee 100644 89 --- a/starlark-httpbin.yaml 90 +++ b/starlark-httpbin.yaml 91 @@ -15,6 +15,9 @@ apiVersion: fn.kpt.dev/v1alpha1 92 kind: StarlarkRun 93 metadata: 94 name: httpbin-gen 95 + namespace: staging 96 + labels: 97 + tier: backend 98 source: | 99 # filter to return if resource is HTTPBin resource 100 def isHTTPBin(r):