Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 590 for labelSelectors (0.24 sec)

  1. pkg/scheduler/apis/config/types_pluginargs.go

    	metav1.TypeMeta
    
    	// DefaultConstraints defines topology spread constraints to be applied to
    	// Pods that don't define any in `pod.spec.topologySpreadConstraints`.
    	// `.defaultConstraints[*].labelSelectors` must be empty, as they are
    	// deduced from the Pod's membership to Services, ReplicationControllers,
    	// ReplicaSets or StatefulSets.
    	// When not empty, .defaultingType must be "List".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. pkg/kube/client.go

    }
    
    func (c *client) PodsForSelector(ctx context.Context, namespace string, labelSelectors ...string) (*v1.PodList, error) {
    	return c.kube.CoreV1().Pods(namespace).List(ctx, metav1.ListOptions{
    		LabelSelector: strings.Join(labelSelectors, ","),
    	})
    }
    
    func (c *client) ApplyYAMLFiles(namespace string, yamlFiles ...string) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  3. cni/pkg/repair/repaircontroller.go

    	}
    	// filter out pod events from different nodes
    	fieldSelectors = append(fieldSelectors, fmt.Sprintf("spec.nodeName=%v", cfg.NodeName))
    	c.pods = kclient.NewFiltered[*corev1.Pod](client, kclient.Filter{
    		LabelSelector: cfg.LabelSelectors,
    		FieldSelector: strings.Join(fieldSelectors, ","),
    	})
    	c.queue = controllers.NewQueue("repair pods",
    		controllers.WithReconciler(c.Reconcile),
    		controllers.WithMaxAttempts(5))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. pkg/dns/server/name_table_test.go

    		}},
    		Resolution: model.Passthrough,
    		Attributes: model.ServiceAttributes{
    			Name:            "foo.bar.com",
    			Namespace:       "testns",
    			ServiceRegistry: provider.External,
    			LabelSelectors:  map[string]string{"wl": "headless-foobar"},
    		},
    	}
    
    	wildcardService := &model.Service{
    		Hostname:       host.Name("*.testns.svc.cluster.local"),
    		DefaultAddress: "172.10.10.10",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 04:26:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. cni/pkg/cmd/root.go

    		InitContainerName:  viper.GetString(constants.RepairInitContainerName),
    		InitTerminationMsg: viper.GetString(constants.RepairInitTerminationMsg),
    		InitExitCode:       viper.GetInt(constants.RepairInitExitCode),
    		LabelSelectors:     viper.GetString(constants.RepairLabelSelectors),
    		FieldSelectors:     viper.GetString(constants.RepairFieldSelectors),
    	}
    
    	return &config.Config{InstallConfig: installCfg, RepairConfig: repairCfg}, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. pilot/pkg/model/sidecar_test.go

    						Name:      "foo",
    						Namespace: "ns1",
    						LabelSelectors: map[string]string{
    							"app": "foo",
    						},
    					},
    				},
    				{
    					Hostname:   "foobar.svc.cluster.local",
    					Ports:      port803x[3:],
    					Resolution: DNSLB,
    					Attributes: ServiceAttributes{
    						Name:      "bar",
    						Namespace: "ns1",
    						LabelSelectors: map[string]string{
    							"app": "bar",
    						},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/serviceregistry_test.go

    			Protocol: "http",
    		}, {
    			Name:     "tcp",
    			Port:     70,
    			Protocol: "tcp",
    		}},
    		Attributes: model.ServiceAttributes{
    			Namespace:      namespace,
    			Name:           "service",
    			LabelSelectors: labels,
    		},
    	}
    
    	t.Run("Kubernetes only", func(t *testing.T) {
    		_, kube, fx := setupTest(t)
    		makeService(t, kube, service)
    		makePod(t, kube, pod)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  8. pilot/pkg/model/sidecar.go

    		return false
    	}
    
    	if !maps.Equal(s1.Attributes.Labels, s2.Attributes.Labels) {
    		return false
    	}
    
    	if !maps.Equal(s1.Attributes.LabelSelectors, s2.Attributes.LabelSelectors) {
    		return false
    	}
    
    	if !maps.Equal(s1.Attributes.ExportTo, s2.Attributes.ExportTo) {
    		return false
    	}
    
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    			Attributes: model.ServiceAttributes{
    				ServiceRegistry: provider.Kubernetes,
    				Name:            "svc1",
    				Namespace:       "nsa",
    				LabelSelectors:  map[string]string{"app": "prod-app"},
    				K8sAttributes: model.K8sAttributes{
    					Type: string(corev1.ServiceTypeClusterIP),
    				},
    			},
    		},
    		Port: model.ServiceInstancePort{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/controller.go

    	if !inRegistry || !workloadInstancesExist || svc.Attributes.ServiceRegistry != provider.Kubernetes ||
    		svc.MeshExternal || svc.Resolution != model.ClientSideLB || svc.Attributes.LabelSelectors == nil {
    		return nil
    	}
    
    	selector := labels.Instance(svc.Attributes.LabelSelectors)
    
    	// Get the service port name and target port so that we can construct the service instance
    	k8sService := c.services.Get(svc.Attributes.Name, svc.Attributes.Namespace)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top