tidy-up, added desired behaviour

This commit is contained in:
msk-
2021-01-19 18:00:02 +00:00
parent d8f2d2256d
commit 7ac37867dc

View File

@@ -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: