Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 134 for LabelSelector (0.16 sec)

  1. samples/sleep/notsleep.yaml

            app: notsleep
        spec:
          affinity:
            podAntiAffinity:
              preferredDuringSchedulingIgnoredDuringExecution:
              - weight: 100
                podAffinityTerm:
                  labelSelector:
                    matchExpressions:
                    - key: app
                      operator: In
                      values:
                      - productpage
                  topologyKey: kubernetes.io/hostname 
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 27 20:55:14 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. pkg/registry/admissionregistration/validatingadmissionpolicybinding/storage/storage_test.go

    			},
    			Spec: admissionregistration.ValidatingAdmissionPolicyBindingSpec{
    				PolicyName: "replicalimit-policy.example.com",
    				ParamRef: &admissionregistration.ParamRef{
    					Selector: &metav1.LabelSelector{
    						MatchLabels: map[string]string{
    							"label": "value",
    						},
    					},
    					ParameterNotFoundAction: &denyAction,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/webhook/webhook.go

    	if !ok && wh.GetLabels()[label.IoIstioRev.Name] == "default" {
    		return true
    	}
    	return false
    }
    
    func selectorMatches(selector *metav1.LabelSelector, labels klabels.Set) bool {
    	// From webhook spec: "Default to the empty LabelSelector, which matches everything."
    	if selector == nil {
    		return true
    	}
    	s, err := metav1.LabelSelectorAsSelector(selector)
    	if err != nil {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/services.go

    		}
    		a.networkUpdateTrigger.MarkDependant(ctx) // Mark we depend on out of band a.Network
    		return &model.ServiceInfo{
    			Service:       a.constructService(s, waypoint),
    			PortNames:     portNames,
    			LabelSelector: model.NewSelector(s.Spec.Selector),
    			Source:        kind.Service,
    			Waypoint:      waypointKey,
    		}
    	}, krt.WithName("ServicesInfo"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. istioctl/pkg/util/common.go

    package util
    
    import (
    	"fmt"
    	"io"
    	"strings"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	binversion "istio.io/istio/operator/version"
    )
    
    var NeverMatch = &metav1.LabelSelector{
    	MatchLabels: map[string]string{
    		"istio.io/deactivated": "never-match",
    	},
    }
    
    var ManifestsFlagHelpStr = `Specify a path to a directory of charts and profiles
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. tests/integration/pilot/vm_test.go

    				retry.UntilSuccessOrFail(t, func() error {
    					pilotRes, err := t.Clusters().Default().Kube().CoreV1().Pods(i.Settings().SystemNamespace).
    						List(context.TODO(), metav1.ListOptions{LabelSelector: "istio=pilot"})
    					if err != nil {
    						return err
    					}
    					if len(pilotRes.Items) != 2 {
    						return errors.New("expected 2 pilots")
    					}
    					return nil
    				}, retry.Timeout(10*time.Second))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. pkg/api/job/warnings_test.go

    	"k8s.io/kubernetes/pkg/apis/batch"
    	"k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/kubernetes/test/utils/ktesting"
    	"k8s.io/utils/pointer"
    )
    
    var (
    	validSelector = &metav1.LabelSelector{
    		MatchLabels: map[string]string{"a": "b"},
    	}
    
    	validPodTemplate = core.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{
    			Labels: validSelector.MatchLabels,
    		},
    		Spec: core.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 14:38:42 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. pkg/controlplane/import_known_versions_test.go

    	reflect.TypeOf(metav1.ListMeta{}):             true,
    	reflect.TypeOf(metav1.ObjectMeta{}):           true,
    	reflect.TypeOf(metav1.OwnerReference{}):       true,
    	reflect.TypeOf(metav1.LabelSelector{}):        true,
    	reflect.TypeOf(metav1.GetOptions{}):           true,
    	reflect.TypeOf(metav1.ListOptions{}):          true,
    	reflect.TypeOf(metav1.DeleteOptions{}):        true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 22 18:47:31 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  9. istioctl/pkg/checkinject/checkinject.go

    			}
    		}
    	}
    	noMatchingReason := func(whs []admitv1.MutatingWebhook) string {
    		nsMatchedLabels := make([]string, 0)
    		podMatchedLabels := make([]string, 0)
    		extractMatchLabels := func(selector *metav1.LabelSelector) []string {
    			if selector == nil {
    				return nil
    			}
    			labels := make([]string, 0)
    			for _, me := range selector.MatchExpressions {
    				if me.Operator != metav1.LabelSelectorOpIn {
    					continue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. pkg/kube/namespace/filter.go

    		return "", false
    	}
    	if _, ok := object.(*corev1.Namespace); ok {
    		return object.GetName(), true
    	}
    	return object.GetNamespace(), true
    }
    
    func LabelSelectorAsSelector(ps *meshapi.LabelSelector) (labels.Selector, error) {
    	if ps == nil {
    		return labels.Nothing(), nil
    	}
    	if len(ps.MatchLabels)+len(ps.MatchExpressions) == 0 {
    		return labels.Everything(), nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top