Пример #1
0
func printClusterPolicyList(list *authorizationapi.ClusterPolicyList, w io.Writer, withNamespace bool) error {
	return printPolicyList(authorizationapi.ToPolicyList(list), w, withNamespace)
}
Пример #2
0
func (s *simulatedStorage) ListPolicies(ctx kapi.Context, label labels.Selector, field fields.Selector) (*authorizationapi.PolicyList, error) {
	ret, err := s.clusterRegistry.ListClusterPolicies(ctx, label, field)
	return authorizationapi.ToPolicyList(ret), err
}