// Transform adds the namespace.
Transform adds the namespace.
// Transform adds the namespace .
func (o *namespaceTransformer) Transform(m resmap.ResMap) (err error) {
	if len(o.namespace) == 0 {
		return nil
	}
	for _, r := range m.Resources() {
		id := r.OrgId()
		fs, ok := o.isSelected(id)
		if !ok {
			continue
		}
		if len(r.Map()) == 0 {
			continue
		}
		if doIt(id, fs) {
			err = o.changeNamespace(r, fs)
			if err != nil {
				return err
			}
		}
	}
	o.updateClusterRoleBinding(m)
	return nil
}
func ( o * namespaceTransformer ) Transform ( m resmap . ResMap ) ( err error ) { if len ( o . namespace ) == 0 { return nil } for _ , r := range m . Resources ( ) { id := r . OrgId ( ) fs , ok := o . isSelected ( id ) if ! ok { continue } if len ( r . Map ( ) ) == 0 { continue } if doIt ( id , fs ) { err = o . changeNamespace ( r , fs ) if err != nil { return err } } } o . updateClusterRoleBinding ( m ) return nil }
Transform adds the namespace.
Transform adds the namespace .
// Don't mutate empty objects?