Add builtin namespace transformer plugin

This commit is contained in:
Jeffrey Regan
2019-05-21 12:36:39 -07:00
parent d4e3cd31a4
commit 79906d73d0
6 changed files with 264 additions and 4 deletions

View File

@@ -130,7 +130,10 @@ func (o *namespaceTransformer) updateClusterRoleBinding(m resmap.ResMap) {
continue
}
objMap := m[id].Map()
subjects := objMap["subjects"].([]interface{})
subjects, ok := objMap["subjects"].([]interface{})
if subjects == nil || !ok {
continue
}
for i := range subjects {
subject := subjects[i].(map[string]interface{})
kind, foundk := subject["kind"]