Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 93 for len (0.13 sec)

  1. istioctl/pkg/util/handlers/handlers.go

    		SingleResourceType()
    	builder.ResourceNames("pods", resname)
    	infos, err := builder.Do().Infos()
    	if err != nil {
    		return nil, "", "", "", fmt.Errorf("failed retrieving: %v in the %q namespace", err, ns)
    	}
    	if len(infos) != 1 {
    		return nil, "", "", "", errors.New("expected a resource")
    	}
    	_, ok := infos[0].Object.(*corev1.Pod)
    	if ok {
    		// If we got a pod, just use its name
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. istioctl/pkg/proxystatus/proxystatus.go

    		RunE: func(c *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClientWithRevision(opts.Revision)
    			if err != nil {
    				return err
    			}
    			multiXdsOpts.MessageWriter = c.OutOrStdout()
    
    			if len(args) > 0 {
    				podName, ns, err := ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace())
    				if err != nil {
    					return err
    				}
    				if ambient.IsZtunnelPod(kubeClient, podName, ns) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. operator/cmd/mesh/manifest-generate.go

      istioctl manifest generate --set "values.sidecarInjectorWebhook.injectedAnnotations.container\.apparmor\.security\.beta\.kubernetes\.io/istio-proxy=runtime/default"
    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("generate accepts no positional arguments, got %#v", args)
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			if kubeClientFunc == nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  4. istioctl/pkg/proxyconfig/clusters.go

    		}
    	}
    	_ = w.Flush()
    	return nil
    }
    
    func parseClusterStatuses(input map[string][]byte) (map[string][]cluster.DebugInfo, error) {
    	statuses := make(map[string][]cluster.DebugInfo, len(input))
    	for istiodKey, bytes := range input {
    		var parsed []cluster.DebugInfo
    		if err := json.Unmarshal(bytes, &parsed); err != nil {
    			return nil, err
    		}
    		statuses[istiodKey] = parsed
    	}
    	return statuses, nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  5. manifests/charts/istio-control/istio-discovery/files/gateway-injection-template.yaml

      annotations: {
        istio.io/rev: {{ .Revision | default "default" | quote }},
        {{- if eq (len $containers) 1 }}
        kubectl.kubernetes.io/default-logs-container: "{{ index $containers 0 }}",
        kubectl.kubernetes.io/default-container: "{{ index $containers 0 }}",
        {{ end }}
      }
    spec:
      securityContext:
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 27 16:55:16 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  6. manifests/charts/istio-control/istio-discovery/files/grpc-agent.yaml

      annotations: {
        istio.io/rev: {{ .Revision | default "default" | quote }},
        {{- if ge (len $containers) 1 }}
        {{- if not (isset .ObjectMeta.Annotations `kubectl.kubernetes.io/default-logs-container`) }}
        kubectl.kubernetes.io/default-logs-container: "{{ index $containers 0 }}",
        {{- end }}
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 26 16:51:17 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  7. cni/pkg/log/uds.go

    	cniLogs := make([]string, 0)
    	err := json.Unmarshal(body, &cniLogs)
    	if err != nil {
    		log.Errorf("Failed to unmarshal CNI plugin logs: %v", err)
    		return
    	}
    	messages := make([]cniLog, 0, len(cniLogs))
    	for _, l := range cniLogs {
    		var msg cniLog
    		if err := json.Unmarshal([]byte(l), &msg); err != nil {
    			log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err)
    			continue
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  8. istioctl/pkg/proxyconfig/testdata/config_dump.json

                            {
                              "ranges": [
                                {
                                  "address_prefix": "10.104.171.68",
                                  "prefix_len": 32
                                }
                              ],
                              "on_match": {
                                "matcher": {
                                  "matcher_tree": {
    Json
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 03 23:08:06 GMT 2024
    - 54.8K bytes
    - Viewed (1)
  9. cni/pkg/nodeagent/informers.go

    			// it's not routable at this point and something is wrong/we should discard this event.
    			podIPs := util.GetPodIPsIfPresent(pod)
    			if len(podIPs) == 0 {
    				log.Warnf("pod %s does not appear to have any assigned IPs, not capturing", pod.Name)
    				return nil
    			}
    
    			err := s.dataplane.AddPodToMesh(s.ctx, pod, podIPs, "")
    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)
  10. istioctl/pkg/describe/describe.go

    		}
    	}
    
    	if matches == 0 {
    		if len(vs.Spec.Http) > 0 {
    			fmt.Fprintf(writer, "%sWARNING: No destinations match pod subsets (checked %d HTTP routes)\n",
    				printSpaces(initPrintNum+printLevel1), len(vs.Spec.Http))
    		}
    		if len(vs.Spec.Tcp) > 0 {
    			fmt.Fprintf(writer, "%sWARNING: No destinations match pod subsets (checked %d TCP routes)\n",
    				printSpaces(initPrintNum+printLevel1), len(vs.Spec.Tcp))
    		}
    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)
Back to top