Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for wle (0.02 sec)

  1. pilot/pkg/autoregistration/controller.go

    		return
    	}
    	log.Infof("cleaned up health-checked WorkloadEntry %s/%s periodic:%v", wle.Namespace, wle.Name, periodic)
    }
    
    // IsControllerOf implements state.StoreCallbacks.
    func (c *Controller) IsControllerOf(wle *config.Config) bool {
    	if wle == nil {
    		return false
    	}
    	return wle.Annotations[annotation.IoIstioWorkloadController.Name] == c.instanceID
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/util/workloadinstances/index_test.go

    			ServiceAccount: spiffe.MustGenSpiffeURIForTrustDomain("cluster.local", selector.Name, "default"),
    			TLSMode:        model.IstioMutualTLSModeLabel,
    		},
    	}
    
    	wi3 := &model.WorkloadInstance{
    		Name:      "another-name",
    		Namespace: "dns-selector",
    		Endpoint: &model.IstioEndpoint{
    			Address:        "2.2.2.2",
    			Labels:         map[string]string{"app": "dns-wle"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceentry/workloadentry.go

    func (s *Controller) workloadEntryNetwork(wle *networking.WorkloadEntry) network.ID {
    	if s == nil {
    		return ""
    	}
    	// 1. first check the wle.Network
    	if wle.Network != "" {
    		return network.ID(wle.Network)
    	}
    
    	// 2. fall back to the passed in getNetworkCb func.
    	if s.networkIDCallback != nil {
    		return s.networkIDCallback(wle.Address, wle.Labels)
    	}
    	return ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 11 03:34:47 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    		network := a.Network(wle.Spec.Address, wle.Labels).String()
    		if wle.Spec.Network != "" {
    			network = wle.Spec.Network
    		}
    
    		// enforce traversing waypoints
    		policies = append(policies, implicitWaypointPolicies(ctx, Waypoints, waypoint, services)...)
    
    		w := &workloadapi.Workload{
    			Uid:                   a.generateWorkloadEntryUID(wle.Namespace, wle.Name),
    			Name:                  wle.Name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. pilot/pkg/autoregistration/internal/state/store.go

    func (s *Store) DeleteHealthCondition(wle config.Config) error {
    	wle = status.DeleteConfigCondition(wle, status.ConditionHealthy)
    	// update the status
    	_, err := s.store.UpdateStatus(wle)
    	if err != nil && !errors.IsNotFound(err) {
    		return fmt.Errorf("error while removing WorkloadEntry health status for %s/%s: %v", wle.Namespace, wle.Name, err)
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. pilot/pkg/autoregistration/internal/health/util.go

    func IsEligibleForHealthStatusUpdates(wle *config.Config) bool {
    	if wle == nil {
    		return false
    	}
    	_, annotated := wle.Annotations[status.WorkloadEntryHealthCheckAnnotation]
    	return annotated
    }
    
    // HasHealthCondition returns true if a given WorkloadEntry has ConditionHealthy
    // condition.
    func HasHealthCondition(wle *config.Config) bool {
    	if wle == nil {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 07:04:17 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    	wle := createWorkloadEntry("wl", selector.Name,
    		&networking.WorkloadEntry{
    			Address:        "2.2.2.2",
    			Labels:         map[string]string{"app": "wle"},
    			ServiceAccount: "default",
    		})
    	wle2 := createWorkloadEntry("wl2", selector.Name,
    		&networking.WorkloadEntry{
    			Address:        "3.3.3.3",
    			Labels:         map[string]string{"app": "wle"},
    			ServiceAccount: "default",
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/conversion.go

    	}
    	networkID := s.workloadEntryNetwork(wle)
    	locality := wle.Locality
    	if locality == "" && len(wle.Labels[model.LocalityLabel]) > 0 {
    		locality = model.GetLocalityLabel(wle.Labels[model.LocalityLabel])
    	}
    	labels := labelutil.AugmentLabels(wle.Labels, clusterID, locality, "", networkID)
    	return &model.ServiceInstance{
    		Endpoint: &model.IstioEndpoint{
    			Address:         addr,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/serviceentry/conversion_test.go

    			sortServiceInstances(instances)
    			sortServiceInstances(tt.out)
    
    			if tt.wle.Locality != "" || tt.clusterID != "" || tt.wle.Network != "" {
    				for _, serviceInstance := range tt.out {
    					serviceInstance.Endpoint.Locality = model.Locality{
    						Label:     tt.wle.Locality,
    						ClusterID: tt.clusterID,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 39K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/serviceentry/util.go

    )
    
    func getWorkloadServiceEntries(ses []config.Config, wle *networking.WorkloadEntry) map[types.NamespacedName]*config.Config {
    	out := make(map[types.NamespacedName]*config.Config)
    	for i, cfg := range ses {
    		se := cfg.Spec.(*networking.ServiceEntry)
    		if se.WorkloadSelector != nil && labels.Instance(se.WorkloadSelector.Labels).Match(wle.Labels) {
    			out[cfg.NamespacedName()] = &ses[i]
    		}
    	}
    
    	return out
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top