code: func (c *PodSecurityPolicyPlugin) createProvidersFromPolicies(psps []*policyv1beta1.PodSecurityPolicy, namespace string) ([]psp.Provider, []error) {
  	var (
  		// collected providers
  		providers []psp.Provider
  		// collected errors to return
  		errs []error
  	)
  
  	for _, constraint := range psps {
  		provider, err := psp.NewSimpleProvider(constraint, namespace, c.strategyFactory)
  		if err != nil {
  			errs = append(errs, fmt.Errorf("error creating provider for PSP %s: %v", constraint.Name, err))
  			continue
  		}
  		providers = append(providers, provider)
  	}
  	return providers, errs
  }
docs: // createProvidersFromPolicies creates providers from the constraints supplied.