github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-render/all-resource-deletion/.expected/diff.patch (about) 1 diff --git a/Kptfile b/Kptfile 2 index fd49fcf..f9ae49b 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/delete-all.yaml b/delete-all.yaml 16 index 724d0cf..c2e665d 100644 17 --- a/delete-all.yaml 18 +++ b/delete-all.yaml 19 @@ -17,6 +17,9 @@ metadata: 20 name: delete-all 21 annotations: 22 config.kubernetes.io/local-config: "true" 23 + namespace: staging 24 + labels: 25 + tier: backend 26 source: |- 27 # delete all resources 28 ctx.resource_list["items"] = [x for x in ctx.resource_list["items"] if x["kind"] in ["Kptfile", "StarlarkRun"]] 29 diff --git a/deployment.yaml b/deployment.yaml 30 deleted file mode 100644 31 index 737526e..0000000 32 --- a/deployment.yaml 33 +++ /dev/null 34 @@ -1,24 +0,0 @@ 35 -# Copyright 2021 Google LLC 36 -# 37 -# Licensed under the Apache License, Version 2.0 (the "License"); 38 -# you may not use this file except in compliance with the License. 39 -# You may obtain a copy of the License at 40 -# 41 -# http://www.apache.org/licenses/LICENSE-2.0 42 -# 43 -# Unless required by applicable law or agreed to in writing, software 44 -# distributed under the License is distributed on an "AS IS" BASIS, 45 -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 46 -# See the License for the specific language governing permissions and 47 -# limitations under the License. 48 -apiVersion: apps/v1 49 -kind: Deployment 50 -metadata: 51 - name: httpbin 52 -spec: 53 - replicas: 4 54 - template: 55 - spec: 56 - containers: 57 - - name: httpbin 58 - image: kennethreitz/httpbin 59 diff --git a/resources.yaml b/resources.yaml 60 deleted file mode 100644 61 index 6590f6c..0000000 62 --- a/resources.yaml 63 +++ /dev/null 64 @@ -1,19 +0,0 @@ 65 -# Copyright 2021 Google LLC 66 -# 67 -# Licensed under the Apache License, Version 2.0 (the "License"); 68 -# you may not use this file except in compliance with the License. 69 -# You may obtain a copy of the License at 70 -# 71 -# http://www.apache.org/licenses/LICENSE-2.0 72 -# 73 -# Unless required by applicable law or agreed to in writing, software 74 -# distributed under the License is distributed on an "AS IS" BASIS, 75 -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 76 -# See the License for the specific language governing permissions and 77 -# limitations under the License. 78 -apiVersion: apps/v1 79 -kind: Deployment 80 -metadata: 81 - name: nginx-deployment 82 -spec: 83 - replicas: 3