mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
tidy-up, added desired behaviour
This commit is contained in:
@@ -100,7 +100,7 @@ patches:
|
||||
th.WriteK("top/left/bottom", `namePrefix: left-
|
||||
|
||||
resources:
|
||||
- ../../../bottom
|
||||
- ../../../bottom
|
||||
`)
|
||||
|
||||
th.WriteK("top/right", `resources:
|
||||
@@ -132,11 +132,11 @@ patches:
|
||||
th.WriteK("top/right/bottom", `namePrefix: right-
|
||||
|
||||
resources:
|
||||
- ../../../bottom
|
||||
- ../../../bottom
|
||||
`)
|
||||
|
||||
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
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
||||
Reference in New Issue
Block a user