github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-eval/krm-check-exclude-kustomize/.expected/diff.patch (about) 1 diff --git a/Kptfile b/Kptfile 2 index af4d9f8..12d5e3d 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: set-labels:v0.1 14 diff --git a/kustomization.yaml b/kustomization.yaml 15 index f91c46a..94769e0 100644 16 --- a/kustomization.yaml 17 +++ b/kustomization.yaml 18 @@ -11,7 +11,9 @@ 19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 # See the License for the specific language governing permissions and 21 # limitations under the License. 22 - 23 # kustomization.yaml contents 24 resources: 25 - resources.yaml 26 +metadata: 27 + labels: 28 + tier: backend 29 diff --git a/resources.yaml b/resources.yaml 30 index f6f4685..b11c929 100644 31 --- a/resources.yaml 32 +++ b/resources.yaml 33 @@ -15,12 +15,23 @@ apiVersion: apps/v1 34 kind: Deployment 35 metadata: 36 name: nginx-deployment 37 + labels: 38 + tier: backend 39 spec: 40 replicas: 3 41 + selector: 42 + matchLabels: 43 + tier: backend 44 + template: 45 + metadata: 46 + labels: 47 + tier: backend 48 --- 49 apiVersion: custom.io/v1 50 kind: Custom 51 metadata: 52 name: custom 53 + labels: 54 + tier: backend 55 spec: 56 image: nginx:1.2.3 # kpt-set: {something}