mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-01 10:20:35 +00:00
tidy-up, added desired behaviour
This commit is contained in:
@@ -100,7 +100,7 @@ patches:
|
|||||||
th.WriteK("top/left/bottom", `namePrefix: left-
|
th.WriteK("top/left/bottom", `namePrefix: left-
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ../../../bottom
|
- ../../../bottom
|
||||||
`)
|
`)
|
||||||
|
|
||||||
th.WriteK("top/right", `resources:
|
th.WriteK("top/right", `resources:
|
||||||
@@ -132,11 +132,11 @@ patches:
|
|||||||
th.WriteK("top/right/bottom", `namePrefix: right-
|
th.WriteK("top/right/bottom", `namePrefix: right-
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ../../../bottom
|
- ../../../bottom
|
||||||
`)
|
`)
|
||||||
|
|
||||||
m := th.Run("top", th.MakeDefaultOptions())
|
m := th.Run("top", th.MakeDefaultOptions())
|
||||||
// Per #2609, the desired behavior is for configMapRef.name and configMapKeyRef.name to be "mysql-9792mdchtg" not "mysql"
|
// Desired behaviour: configMapKeyRef should reference ConfigMap names.
|
||||||
th.AssertActualEqualsExpected(m, `apiVersion: apps/v1
|
th.AssertActualEqualsExpected(m, `apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user