- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MatchNamespace (0.21 sec)
-
pkg/config/analysis/analyzers/authz/authorizationpolicies.go
ap := r.Message.(*v1beta1.AuthorizationPolicy) for i, rule := range ap.Rules { for j, from := range rule.From { for k, ns := range append(from.Source.Namespaces, from.Source.NotNamespaces...) { if !matchNamespace(ns, c) { m := msg.NewReferencedResourceNotFound(r, "namespace", ns) nsIndex := k if nsIndex >= len(from.Source.Namespaces) { nsIndex -= len(from.Source.Namespaces) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 11 20:57:29 UTC 2023 - 6K bytes - Viewed (0) -
pkg/registry/core/namespace/strategy.go
if !ok { return nil, nil, fmt.Errorf("not a namespace") } return labels.Set(namespaceObj.Labels), NamespaceToSelectableFields(namespaceObj), nil } // MatchNamespace returns a generic matcher for a given label and field selector. func MatchNamespace(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate { return apistorage.SelectionPredicate{ Label: label, Field: field, GetAttrs: GetAttrs,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 07 08:51:17 UTC 2021 - 8.3K bytes - Viewed (0) -
pkg/registry/core/namespace/storage/storage.go
NewFunc: func() runtime.Object { return &api.Namespace{} }, NewListFunc: func() runtime.Object { return &api.NamespaceList{} }, PredicateFunc: namespace.MatchNamespace, DefaultQualifiedResource: api.Resource("namespaces"), SingularQualifiedResource: api.Resource("namespace"), CreateStrategy: namespace.Strategy, UpdateStrategy: namespace.Strategy,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 13.4K bytes - Viewed (0)