mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Add group and verison to fix test.
This commit is contained in:
@@ -346,20 +346,24 @@ func TestFixOutdatedPatchesFieldTitle(t *testing.T) {
|
|||||||
patchesJson6902:
|
patchesJson6902:
|
||||||
- path: patch1.yaml
|
- path: patch1.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: Service
|
||||||
- path: patch2.yaml
|
- path: patch2.yaml
|
||||||
target:
|
target:
|
||||||
kind: Service
|
group: apps
|
||||||
|
kind: Deployment
|
||||||
|
version: v1
|
||||||
`)
|
`)
|
||||||
|
|
||||||
expected := []byte(`
|
expected := []byte(`
|
||||||
patches:
|
patches:
|
||||||
- path: patch1.yaml
|
- path: patch1.yaml
|
||||||
target:
|
target:
|
||||||
kind: Deployment
|
kind: Service
|
||||||
- path: patch2.yaml
|
- path: patch2.yaml
|
||||||
target:
|
target:
|
||||||
kind: Service
|
group: apps
|
||||||
|
kind: Deployment
|
||||||
|
version: v1
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
`)
|
`)
|
||||||
|
|||||||
Reference in New Issue
Block a user