Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for OK (0.11 sec)

  1. istioctl/pkg/xds/google.go

    	if err != nil {
    		return nil, err
    	}
    	spec, ok := u.Object["spec"].(map[string]any)
    	if !ok {
    		return nil, errors.New(`field "spec" is not a map`)
    	}
    	var mem hubMembership
    	mem.WorkloadIdentityPool, ok = spec["workload_identity_pool"].(string)
    	if !ok {
    		return nil, errors.New(`field "spec.workload_identity_pool" is not a string`)
    	}
    	return &mem, nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Nov 14 20:23:34 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  2. istioctl/pkg/util/formatting/formatter.go

    		return ""
    	}
    
    	prefix, ok := colorPrefixes[m.Type.Level()]
    	if !ok {
    		return ""
    	}
    	return prefix
    }
    
    func colorSuffix(colorize bool) string {
    	if !colorize {
    		return ""
    	}
    	return "\033[0m"
    }
    
    func IstioctlColorDefault(writer io.Writer) bool {
    	if strings.EqualFold(termEnvVar.Get(), "dumb") {
    		return false
    	}
    
    	file, ok := writer.(*os.File)
    	if ok {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/workload.go

    		return "None"
    	}
    
    	if svc, ok := services[wl.Waypoint.Destination]; ok {
    		return svc.Name
    	}
    
    	return "NA" // Shouldn't normally reach here
    }
    
    func serviceWaypointName(svc *ZtunnelService, services map[string]*ZtunnelService) string {
    	if svc.Waypoint == nil {
    		return "None"
    	}
    
    	if svc, ok := services[svc.Waypoint.Destination]; ok {
    		return svc.Name
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/pod_cache.go

    		return info.Netns
    	}
    	return nil
    }
    
    // make sure uid is in the cache, even if we don't have a netns
    func (p *podNetnsCache) Ensure(uid string) {
    	p.mu.Lock()
    	defer p.mu.Unlock()
    	if _, ok := p.currentPodCache[uid]; !ok {
    		p.currentPodCache[uid] = WorkloadInfo{}
    	}
    }
    
    func (p *podNetnsCache) addToCacheUnderLock(uid string, workload WorkloadInfo) {
    	runtime.SetFinalizer(workload.Netns, closeNetns)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. istioctl/pkg/checkinject/checkinject.go

    				switch me.Operator {
    				case metav1.LabelSelectorOpDoesNotExist:
    					v, ok := podLabels[me.Key]
    					if ok {
    						return fmt.Sprintf("Pod has %s=%s label, preventing injection", me.Key, v), false
    					}
    				case metav1.LabelSelectorOpNotIn:
    					v, ok := podLabels[me.Key]
    					if !ok {
    						continue
    					}
    					for _, nv := range me.Values {
    						if nv == v {
    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)
  6. cni/pkg/repair/repaircontroller.go

    	m := podsRepaired.With(typeLabel.Value(labelType))
    	repairLog.Infof("Pod detected as broken, adding label: %s/%s", pod.Namespace, pod.Name)
    
    	labels := pod.GetLabels()
    	if _, ok := labels[c.cfg.LabelKey]; ok {
    		m.With(resultLabel.Value(resultSkip)).Increment()
    		repairLog.Infof("Pod %s/%s already has label with key %s, skipping", pod.Namespace, pod.Name, c.cfg.LabelKey)
    		return nil
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/envoy/configdump/configdump.go

    	if label, ok := md[buildLabelKey]; ok {
    		fmt.Fprintf(&sb, "-%s", label.GetStringValue())
    	}
    	if status, ok := md[statusKey]; ok {
    		fmt.Fprintf(&sb, "/%s", status.GetStringValue())
    	}
    	if typ, ok := md[buildTypeKey]; ok {
    		fmt.Fprintf(&sb, "/%s", typ.GetStringValue())
    	}
    	if sslVersion, ok := md[sslVersionKey]; ok {
    		fmt.Fprintf(&sb, "/%s", sslVersion.GetStringValue())
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. operator/cmd/mesh/profile-dump.go

    		decoded = make([]any, 0)
    	} else {
    		decoded = map[string]any{}
    	}
    	if err := json.Unmarshal(uglyJSON, &decoded); err != nil {
    		return []string{}, err
    	}
    	if d, ok := decoded.(map[string]any); ok {
    		if v, ok := d["spec"]; ok {
    			// Fall back to showing the entire spec.
    			// (When --config-path is used there will be no spec to remove)
    			decoded = v
    		}
    	}
    	setflags, err := walk("", "", decoded)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  9. istioctl/cmd/options.go

    		c.Printf("The following options can be passed to any command:\n")
    		// (Currently the only global options we show are help options)
    		rootCmd.PersistentFlags().VisitAll(func(flag *pflag.Flag) {
    			if _, ok := helpFlags[flag.Name]; ok {
    				// Currently every flag.Shorthand is "", so there is no point in showing shorthands
    				shorthand := "   "
    				if flag.Shorthand != "" {
    					shorthand = "-" + flag.Shorthand + ","
    				}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  10. istioctl/pkg/validate/validate.go

    }
    
    // GetTemplateLabels returns spec.template.metadata.labels from Deployment
    func GetTemplateLabels(u *unstructured.Unstructured) (map[string]string, error) {
    	if spec, ok := u.Object["spec"].(map[string]any); ok {
    		if template, ok := spec["template"].(map[string]any); ok {
    			m, _, err := unstructured.NestedStringMap(template, "metadata", "labels")
    			if err != nil {
    				return nil, err
    			}
    			return m, 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)
Back to top