Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getLabel (0.39 sec)

  1. cmd/metrics-v2.go

    			// values
    			bugLogIf(GlobalContext, err)
    			continue
    		}
    
    		h := dtoMetric.GetHistogram()
    		for _, b := range h.Bucket {
    			labels := make(map[string]string)
    			for _, lp := range dtoMetric.GetLabel() {
    				if *lp.Name == "api" && toLowerAPILabels {
    					labels[*lp.Name] = strings.ToLower(*lp.Value)
    				} else {
    					labels[*lp.Name] = *lp.Value
    				}
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  2. istioctl/pkg/checkinject/checkinject.go

    					return err
    				}
    				ns, err := kubeClient.Kube().CoreV1().Namespaces().Get(context.TODO(), podNs, metav1.GetOptions{})
    				if err != nil {
    					return err
    				}
    				podLabels = pod.GetLabels()
    				nsLabels = ns.GetLabels()
    			} else {
    				namespace := ctx.NamespaceOrDefault(ctx.Namespace())
    				ns, err := kubeClient.Kube().CoreV1().Namespaces().Get(context.TODO(), namespace, metav1.GetOptions{})
    				if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. migrator/migrator.go

    		return &chk, stmt.Table
    	}
    
    	uniqueConstraints := stmt.Schema.ParseUniqueConstraints()
    	if uni, ok := uniqueConstraints[name]; ok {
    		return &uni, stmt.Table
    	}
    
    	getTable := func(rel *schema.Relationship) string {
    		switch rel.Type {
    		case schema.HasOne, schema.HasMany:
    			return rel.FieldSchema.Table
    		case schema.Many2Many:
    			return rel.JoinTable.Table
    		}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  4. istioctl/pkg/util/ambient/util.go

    		return t.GetAnnotations()[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    	case *corev1.Namespace:
    		if t.GetLabels()["istio-injection"] == "enabled" {
    			return false
    		}
    		if v, ok := t.GetLabels()[label.IoIstioRev.Name]; ok && v != "" {
    			return false
    		}
    		return t.GetLabels()[constants.DataplaneModeLabel] == constants.DataplaneModeAmbient
    	}
    	return false
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  5. istioctl/pkg/injector/injector-list.go

    	injector := getInjector(namespace, hooks)
    	if injector != nil {
    		return injector.ObjectMeta.GetLabels()[label.IoIstioRev.Name]
    	}
    	newRev := namespace.ObjectMeta.GetLabels()[label.IoIstioRev.Name]
    	oldLabel, ok := namespace.ObjectMeta.GetLabels()[analyzer_util.InjectionLabelName]
    	// If there is no istio-injection=disabled and no istio.io/rev, the namespace isn't injected
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  6. cni/pkg/util/podutil.go

    // to have traffic redirected thru the node proxy.
    func PodRedirectionEnabled(namespace *corev1.Namespace, pod *corev1.Pod) bool {
    	if !(namespace.GetLabels()[constants.DataplaneModeLabel] == constants.DataplaneModeAmbient ||
    		pod.GetLabels()[constants.DataplaneModeLabel] == constants.DataplaneModeAmbient) {
    		// Neither namespace nor pod has ambient mode enabled
    		return false
    	}
    	if podHasSidecar(pod) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/informers.go

    // TODO it is sort of pointless/confusing/implicit to populate Old and New with the same reference here
    func (s *InformerHandlers) enqueueNamespace(o controllers.Object) {
    	namespace := o.GetName()
    	labels := o.GetLabels()
    	matchAmbient := labels[constants.DataplaneModeLabel] == constants.DataplaneModeAmbient
    	if matchAmbient {
    		log.Infof("Namespace %s is enabled in ambient mesh", namespace)
    	} else {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate.go

    		Meta: config.Meta{
    			GroupVersionKind:  schema.GroupVersionKind(),
    			Name:              un.GetName(),
    			Namespace:         un.GetNamespace(),
    			Domain:            domain,
    			Labels:            un.GetLabels(),
    			Annotations:       un.GetAnnotations(),
    			ResourceVersion:   un.GetResourceVersion(),
    			CreationTimestamp: un.GetCreationTimestamp().Time,
    		},
    		Spec: data,
    	}, nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    			for i, s := range serviceList.Items {
    				iInfo := &ingressInfo{
    					service: serviceList.Items[i].DeepCopy(),
    				}
    				for j, p := range ingressPods[ns] {
    					if p.GetLabels() == nil {
    						continue
    					}
    					if maps.Contains(p.GetLabels(), s.Spec.Selector) {
    						iInfo.pods = append(iInfo.pods, ingressPods[ns][j])
    					}
    				}
    				if len(iInfo.pods) > 0 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/revision.go

    	if err != nil {
    		return nil, fmt.Errorf("error while listing mutating webhooks: %v", err)
    	}
    	for _, hook := range webhooks {
    		rev := renderWithDefault(hook.GetLabels()[label.IoIstioRev.Name], DefaultRevisionName)
    		tagLabel := hook.GetLabels()[IstioTagLabel]
    		ri, revPresent := revisions[rev]
    		if revPresent {
    			if tagLabel != "" {
    				ri.Webhooks = append(ri.Webhooks, &MutatingWebhookConfigInfo{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Jan 28 13:16:05 GMT 2023
    - 4.5K bytes
    - Viewed (0)
Back to top