mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 09:24:23 +00:00
Add the rmBuilder test helper.
This commit is contained in:
@@ -214,9 +214,9 @@ func TestResourceNotFound(t *testing.T) {
|
||||
}
|
||||
|
||||
func findSecret(m resmap.ResMap) *resource.Resource {
|
||||
for id, res := range m.AsMap() {
|
||||
if id.Gvk().Kind == "Secret" {
|
||||
return res
|
||||
for _, r := range m.Resources() {
|
||||
if r.Id().Gvk().Kind == "Secret" {
|
||||
return r
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user