Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 81 for NamespacedName (0.19 sec)

  1. pkg/kube/kclient/index.go

    	delegate cache.ResourceEventHandler,
    ) *Index[K, O] {
    	idx := Index[K, O]{
    		objects: make(map[K]sets.Set[types.NamespacedName]),
    		client:  client,
    		mu:      sync.RWMutex{},
    	}
    	addObj := func(obj any) {
    		ro := controllers.ExtractObject(obj)
    		o := ro.(O)
    		objectKey := config.NamespacedName(o)
    		for _, indexKey := range extract(o) {
    			sets.InsertOrNew(idx.objects, indexKey, objectKey)
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 04 03:49:30 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. pilot/pkg/features/security.go

    		).Get()
    		res := sets.New[types.NamespacedName]()
    		if accounts == "" {
    			return res
    		}
    		for _, v := range strings.Split(accounts, ",") {
    			ns, sa, valid := strings.Cut(v, "/")
    			if !valid {
    				log.Warnf("Invalid CA_TRUSTED_NODE_ACCOUNTS, ignoring: %v", v)
    				continue
    			}
    			res.Insert(types.NamespacedName{
    				Namespace: ns,
    				Name:      sa,
    			})
    		}
    		return res
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 13 03:50:59 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/controller/tainteviction/timed_workers.go

    type WorkArgs struct {
    	NamespacedName types.NamespacedName
    }
    
    // KeyFromWorkArgs creates a key for the given `WorkArgs`
    func (w *WorkArgs) KeyFromWorkArgs() string {
    	return w.NamespacedName.String()
    }
    
    // NewWorkArgs is a helper function to create new `WorkArgs`
    func NewWorkArgs(name, namespace string) *WorkArgs {
    	return &WorkArgs{
    		NamespacedName: types.NamespacedName{Namespace: namespace, Name: name},
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:23:56 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. tests/integration/security/filebased_tls_origination/main_test.go

    	for index, namespacedName := range apps.Ns1.All.NamespacedNames() {
    		switch {
    		case namespacedName.Name == "client":
    			client = apps.Ns1.All[index]
    		case namespacedName.Name == "server":
    			server = apps.Ns1.All[index]
    		case namespacedName.Name == "internal-client":
    			internalClient = apps.Ns1.All[index]
    		}
    	}
    	for index, namespacedName := range apps.Ns2.All.NamespacedNames() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. pkg/kube/controllers/queue.go

    	return q
    }
    
    // Add an item to the queue.
    func (q Queue) Add(item any) {
    	q.queue.Add(item)
    }
    
    // AddObject takes an Object and adds the types.NamespacedName associated.
    func (q Queue) AddObject(obj Object) {
    	q.queue.Add(config.NamespacedName(obj))
    }
    
    // Run the queue. This is synchronous, so should typically be called in a goroutine.
    func (q Queue) Run(stop <-chan struct{}) {
    	defer q.queue.ShutDown()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. pkg/kube/controllers/queue_test.go

    	handles := atomic.NewInt32(0)
    	q := NewQueue("custom", WithReconciler(func(key types.NamespacedName) error {
    		handles.Inc()
    		return nil
    	}))
    	q.Add(types.NamespacedName{Name: "something"})
    	stop := make(chan struct{})
    	go q.Run(stop)
    	retry.UntilOrFail(t, q.HasSynced, retry.Delay(time.Microsecond))
    	assert.Equal(t, handles.Load(), 1)
    	q.Add(types.NamespacedName{Name: "something else"})
    	close(stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 15 16:18:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. security/pkg/server/ca/node_auth.go

    type MulticlusterNodeAuthorizor struct {
    	trustedNodeAccounts sets.Set[types.NamespacedName]
    	component           *multicluster.Component[*ClusterNodeAuthorizer]
    }
    
    func NewMulticlusterNodeAuthenticator(
    	trustedNodeAccounts sets.Set[types.NamespacedName],
    	controller multicluster.ComponentBuilder,
    ) *MulticlusterNodeAuthorizor {
    	m := &MulticlusterNodeAuthorizor{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/util.go

    func podKeyByProxy(proxy *model.Proxy) types.NamespacedName {
    	parts := strings.Split(proxy.ID, ".")
    	if len(parts) == 2 && proxy.Metadata.Namespace == parts[1] {
    		return types.NamespacedName{Name: parts[0], Namespace: parts[1]}
    	}
    
    	return types.NamespacedName{}
    }
    
    func namespacedNameForService(svc *model.Service) types.NamespacedName {
    	return types.NamespacedName{
    		Namespace: svc.Attributes.Namespace,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 28 02:01:47 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. pkg/webhooks/webhookpatch_test.go

    	go queue.Run(test.NewStop(t))
    	retry.UntilOrFail(t, queue.HasSynced)
    	queue.Add(types.NamespacedName{Name: "success"})
    	retry.UntilOrFail(t, func() bool { return success.Load() == 1 })
    	queue.Add(types.NamespacedName{Name: "conflict-success"})
    	retry.UntilOrFail(t, func() bool { return success.Load() == 2 && retries.Load() == 5 })
    	queue.Add(types.NamespacedName{Name: "conflict-for-ever"})
    	retries.Store(1)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 09:53:38 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. pilot/pkg/model/authorization.go

    	Annotations map[string]string           `json:"annotations"`
    	Spec        *authpb.AuthorizationPolicy `json:"spec"`
    }
    
    func (ap *AuthorizationPolicy) NamespacedName() types.NamespacedName {
    	return types.NamespacedName{Name: ap.Name, Namespace: ap.Namespace}
    }
    
    // AuthorizationPolicies organizes AuthorizationPolicy by namespace.
    type AuthorizationPolicies struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top