Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 81 for NamespacedName (0.17 sec)

  1. pkg/test/csrctrl/controllers/csr_controller.go

    		controllers.WithReconciler(c.Reconcile),
    		controllers.WithMaxAttempts(5))
    	c.csrs.AddEventHandler(controllers.ObjectHandler(c.queue.AddObject))
    	return c
    }
    
    func (s *Signer) Reconcile(key types.NamespacedName) error {
    	csr := s.csrs.Get(key.Name, key.Namespace)
    	if csr == nil {
    		// CSR was deleted, no action needed
    		return nil
    	}
    
    	var exist bool
    	signer, exist := s.signers[csr.Spec.SignerName]
    	switch {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. pkg/kube/controllers/common_test.go

    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestEnqueueForParentHandler(t *testing.T) {
    	var written atomic.String
    	q := NewQueue("test", WithReconciler(func(key types.NamespacedName) error {
    		t.Logf("got event %v", key)
    		written.Store(key.String())
    		return nil
    	}))
    	go q.Run(test.NewStop(t))
    	handler := EnqueueForParentHandler(q, gvk.Deployment)
    	handler(&corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 15 15:34:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tests/integration/pilot/revisions/revisions_test.go

    					DeployAsVM: true,
    					Ports:      []echo.Port{},
    				}).
    				BuildOrFail(t)
    
    			echotest.New(t, echos).
    				ConditionallyTo(echotest.ReachableDestinations).
    				ToMatch(match.ServiceName(echo.NamespacedName{Name: "server", Namespace: canary})).
    				Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    					retry.UntilSuccessOrFail(t, func() error {
    						result, err := from.Call(echo.CallOptions{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 27 15:52:38 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. tests/integration/pilot/mcs/autoexport/autoexport_test.go

    			// Verify that ServiceExport is created automatically for services.
    			ctx.NewSubTest("exported").RunParallel(
    				func(ctx framework.TestContext) {
    					serviceB := match.ServiceName(echo.NamespacedName{Name: common.ServiceB, Namespace: echos.Namespace})
    					for _, cluster := range serviceB.GetMatches(echos.Instances).Clusters() {
    						cluster := cluster
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. tests/integration/telemetry/api/setup_test.go

    		return err
    	}
    
    	if err != nil {
    		return err
    	}
    	for _, c := range ctx.Clusters() {
    		ingr = append(ingr, ist.IngressFor(c))
    	}
    	mockProm = match.ServiceName(echo.NamespacedName{Name: "mock-prom", Namespace: apps.Namespace}).GetMatches(apps.Echos().All.Instances())
    	promInst, err = prometheus.New(ctx, prometheus.Config{})
    	if err != nil {
    		return
    	}
    
    	args := map[string]any{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/autoserviceexportcontroller.go

    	return "AutoServiceExport (cluster=" + c.ClusterID.String() + ") "
    }
    
    // func (c *autoServiceExportController) createServiceExportIfNotPresent(svc *v1.Service) error {
    func (c *autoServiceExportController) Reconcile(key types.NamespacedName) error {
    	if !c.mcsSupported {
    		// Don't create ServiceExport if MCS is not supported on the cluster.
    		log.Debugf("%s ignoring added Service, since !mcsSupported", c.logPrefix())
    		return nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. pilot/pkg/model/policyattachment_test.go

    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			test.SetForTest(t, &features.EnableSelectorBasedK8sGatewayPolicy, tt.enableSelectorPolicies)
    			nsName := types.NamespacedName{Name: "policy1", Namespace: "default"}
    			matcher := tt.selection.ShouldAttachPolicy(mockKind, nsName, tt.policy)
    
    			if matcher != tt.expected {
    				t.Errorf("Expected %v, but got %v", tt.expected, matcher)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. pkg/kube/krt/filter.go

    		attrs = append(attrs, "generic")
    	}
    	res := strings.Join(attrs, ",")
    	return fmt.Sprintf("{%s}", res)
    }
    
    // FilterObjectName selects a Kubernetes object by name.
    func FilterObjectName(name types.NamespacedName) FetchOption {
    	return func(h *dependency) {
    		// Translate to a key lookup
    		h.filter.keys = smallset.New(keyFunc(name.Name, name.Namespace))
    	}
    }
    
    func FilterKey(k string) FetchOption {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    			TargetPort:  uint32(p.TargetPort.IntVal),
    		})
    	}
    
    	addresses, err := slices.MapErr(getVIPs(svc), a.toNetworkAddress)
    	if err != nil {
    		log.Warnf("fail to parse service %v: %v", config.NamespacedName(svc), err)
    		return nil
    	}
    	// handle svc waypoint scenario
    	var waypointAddress *workloadapi.GatewayAddress
    	if w != nil {
    		waypointAddress = a.getWaypointAddress(w)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/ingress/status.go

    }
    
    func (s *StatusSyncer) enqueueAll() {
    	for _, ing := range s.ingresses.List(metav1.NamespaceAll, labels.Everything()) {
    		s.queue.AddObject(ing)
    	}
    }
    
    func (s *StatusSyncer) Reconcile(key types.NamespacedName) error {
    	log := statusLog.WithLabels("ingress", key)
    	ing := s.ingresses.Get(key.Name, key.Namespace)
    	if ing == nil {
    		log.Debugf("ingress removed, no action")
    		return nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top