// createSupplementalGroupStrategy creates a new supplemental group strategy
createSupplementalGroupStrategy creates a new supplemental group strategy
// createSupplementalGroupStrategy creates a new supplemental group strategy
func createSupplementalGroupStrategy(opts *policy.SupplementalGroupsStrategyOptions) (group.GroupStrategy, error) {
	switch opts.Rule {
	case policy.SupplementalGroupsStrategyRunAsAny:
		return group.NewRunAsAny()
	case policy.SupplementalGroupsStrategyMustRunAs:
		return group.NewMustRunAs(opts.Ranges)
	default:
		return nil, fmt.Errorf("Unrecognized SupplementalGroups strategy type %s", opts.Rule)
	}
}
func createSupplementalGroupStrategy ( opts * policy . SupplementalGroupsStrategyOptions ) ( group . GroupStrategy , error ) { switch opts . Rule { case policy . SupplementalGroupsStrategyRunAsAny : return group . NewRunAsAny ( ) case policy . SupplementalGroupsStrategyMustRunAs : return group . NewMustRunAs ( opts . Ranges ) default : return nil , fmt . Errorf ( " " , opts . Rule ) } }
createSupplementalGroupStrategy creates a new supplemental group strategy
createSupplementalGroupStrategy creates a new supplemental group strategy