mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 17:34:21 +00:00
Skip adding nameprefix to namespace
This commit is contained in:
@@ -54,6 +54,14 @@ func TestPrefixNameRun(t *testing.T) {
|
||||
"name": "crd",
|
||||
},
|
||||
}),
|
||||
resid.NewResId(ns, "ns"): rf.FromMap(
|
||||
map[string]interface{}{
|
||||
"apiVersion": "v1",
|
||||
"kind": "Namespace",
|
||||
"metadata": map[string]interface{}{
|
||||
"name": "ns",
|
||||
},
|
||||
}),
|
||||
}
|
||||
expected := resmap.ResMap{
|
||||
resid.NewResIdWithPrefix(cmap, "cm1", "someprefix-"): rf.FromMap(
|
||||
@@ -80,6 +88,14 @@ func TestPrefixNameRun(t *testing.T) {
|
||||
"name": "crd",
|
||||
},
|
||||
}),
|
||||
resid.NewResId(ns, "ns"): rf.FromMap(
|
||||
map[string]interface{}{
|
||||
"apiVersion": "v1",
|
||||
"kind": "Namespace",
|
||||
"metadata": map[string]interface{}{
|
||||
"name": "ns",
|
||||
},
|
||||
}),
|
||||
}
|
||||
|
||||
npt, err := NewNamePrefixTransformer(
|
||||
|
||||
Reference in New Issue
Block a user