code: func (r *RoleV2) SetResource(kind string, actions []string) {
  	if r.Spec.Resources == nil {
  		r.Spec.Resources = make(map[string][]string)
  	}
  	r.Spec.Resources[kind] = actions
  }
docs: // SetResource sets resource rule