code: func (o *CreateRoleOptions) RunCreateRole() error {
  	role := &rbacv1.Role{
  		// this is ok because we know exactly how we want to be serialized
  		TypeMeta: metav1.TypeMeta{APIVersion: rbacv1.SchemeGroupVersion.String(), Kind: "Role"},
  	}
  	role.Name = o.Name
  	rules, err := generateResourcePolicyRules(o.Mapper, o.Verbs, o.Resources, o.ResourceNames, []string{})
  	if err != nil {
  		return err
  	}
  	role.Rules = rules
  
  	// Create role.
  	if !o.DryRun {
  		role, err = o.Client.Roles(o.Namespace).Create(role)
  		if err != nil {
  			return err
  		}
  	}
  
  	return o.PrintObj(role)
  }
docs: // RunCreateRole performs the execution of 'create role' sub command