mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
make replacement transformer test pass and add todo
This commit is contained in:
@@ -343,6 +343,9 @@ spec:
|
|||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Address namePrefix in overlay not applying to replacement targets
|
||||||
|
// The image in the target deployment should end up being `prefix-source` instead of `source`
|
||||||
|
// https://github.com/kubernetes-sigs/kustomize/issues/4034
|
||||||
func TestReplacementTransformerWithNamePrefixOverlay(t *testing.T) {
|
func TestReplacementTransformerWithNamePrefixOverlay(t *testing.T) {
|
||||||
th := kusttest_test.MakeEnhancedHarness(t)
|
th := kusttest_test.MakeEnhancedHarness(t)
|
||||||
defer th.Reset()
|
defer th.Reset()
|
||||||
@@ -402,7 +405,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: prefix-source
|
- image: source
|
||||||
name: nginx
|
name: nginx
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user