mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-29 17:41:13 +00:00
Make UpdateExpectedFromActual work with hierarchical testdata directories
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Copyright 2019 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
apiVersion: example.com/v1alpha1
|
||||
kind: Demo
|
||||
spec:
|
||||
value: a
|
||||
@@ -0,0 +1,16 @@
|
||||
# Copyright 2019 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-1
|
||||
annotations:
|
||||
updated: "true"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-2
|
||||
annotations:
|
||||
updated: "true"
|
||||
@@ -0,0 +1,16 @@
|
||||
# Copyright 2019 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-1
|
||||
annotations:
|
||||
baz: foo
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-2
|
||||
annotations:
|
||||
foo: bar
|
||||
@@ -0,0 +1,20 @@
|
||||
apiVersion:
|
||||
kind: ResourceList
|
||||
items:
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-1
|
||||
annotations:
|
||||
updated: "true"
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-2
|
||||
annotations:
|
||||
updated: "true"
|
||||
functionConfig:
|
||||
apiVersion: example.com/v1alpha1
|
||||
kind: Demo
|
||||
spec:
|
||||
value: a
|
||||
@@ -0,0 +1,22 @@
|
||||
# Copyright 2019 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
kind: ResourceList
|
||||
items:
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-1
|
||||
annotations:
|
||||
baz: foo
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: test-2
|
||||
annotations:
|
||||
foo: bar
|
||||
functionConfig:
|
||||
apiVersion: example.com/v1alpha1
|
||||
kind: Demo
|
||||
spec:
|
||||
value: a
|
||||
Reference in New Issue
Block a user