Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 114 for nmap (0.14 sec)

  1. cni/pkg/nodeagent/pod_cache.go

    type PodNetnsCache interface {
    	ReadCurrentPodSnapshot() map[string]WorkloadInfo
    }
    
    // Hold a cache of node local pods with their netns
    // if we don't know the netns, the pod will still be here with a nil netns.
    type podNetnsCache struct {
    	openNetns func(nspath string) (NetnsCloser, error)
    
    	currentPodCache map[string]WorkloadInfo
    	mu              sync.RWMutex
    }
    
    type WorkloadInfo struct {
    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)
  2. istioctl/pkg/validate/validate.go

    	}
    	return out
    }
    
    func transformInterfaceMap(in map[any]any) map[string]any {
    	out := make(map[string]any, len(in))
    	for k, v := range in {
    		out[fmt.Sprintf("%v", k)] = transformMapValue(v)
    	}
    	return out
    }
    
    func transformMapValue(in any) any {
    	switch v := in.(type) {
    	case []any:
    		return transformInterfaceArray(v)
    	case map[any]any:
    		return transformInterfaceMap(v)
    	default:
    		return v
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. istioctl/pkg/multixds/gather.go

    				if err != nil {
    					return nil, err
    				}
    				return map[string]*discovery.DiscoveryResponse{
    					CpInfo(response).ID: response,
    				}, nil
    			}
    		}
    		return nil, err
    	}
    	return mapShards(responses)
    }
    
    func mapShards(responses []*discovery.DiscoveryResponse) (map[string]*discovery.DiscoveryResponse, error) {
    	retval := map[string]*discovery.DiscoveryResponse{}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  4. istioctl/pkg/internaldebug/internal-debug.go

    	return xdsResponses, nil
    }
    
    func HandlerForDebugErrors(kubeClient kube.CLIClient,
    	centralOpts *clioptions.CentralControlPlaneOptions,
    	writer io.Writer,
    	istioNamespace string,
    	xdsResponses map[string]*discovery.DiscoveryResponse,
    ) (map[string]*discovery.DiscoveryResponse, error) {
    	for _, response := range xdsResponses {
    		for _, resource := range response.Resources {
    			eString := string(resource.Value)
    			switch {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/policy/v1/generated.proto

      // the list automatically by PodDisruptionBudget controller after some time.
      // If everything goes smooth this map should be empty for the most of the time.
      // Large number of entries in the map may indicate problems with pod deletions.
      // +optional
      map<string, k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2;
    
      // Number of pod disruptions that are currently allowed.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/pilot/status_test.go

    )
    
    func TestXdsStatusWriter_PrintAll(t *testing.T) {
    	tests := []struct {
    		name    string
    		input   map[string]*discovery.DiscoveryResponse
    		want    string
    		wantErr bool
    	}{
    		{
    			name: "prints multiple istiod inputs to buffer in alphabetical order by pod name",
    			input: map[string]*discovery.DiscoveryResponse{
    				"istiod1": xdsResponseInput("istiod1", []clientConfigInput{
    					{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  7. operator/cmd/mesh/profile-dump.go

    	if err != nil {
    		return []string{}, err
    	}
    	var decoded any
    	if uglyJSON[0] == '[' {
    		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.
    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)
  8. cni/pkg/util/podutil_test.go

    	assert.Equal(t, len(podIPs), 0)
    }
    
    func TestPodRedirectionEnabled(t *testing.T) {
    	var (
    		ambientEnabledLabel     = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeAmbient}
    		ambientDisabledLabel    = map[string]string{constants.DataplaneModeLabel: constants.DataplaneModeNone}
    		sidecarStatusAnnotation = map[string]string{annotation.SidecarStatus.Name: "test"}
    
    		namespaceWithAmbientEnabledLabel = &corev1.Namespace{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. istioctl/pkg/checkinject/checkinject.go

    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    				return err
    			}
    			var podName, podNs string
    			var podLabels, nsLabels map[string]string
    			if len(args) == 1 {
    				podName, podNs, err = ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace())
    				if err != nil {
    					return err
    				}
    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)
  10. cni/pkg/nodeagent/ztunnelserver_test.go

    	}
    	err = c.SetWriteDeadline(time.Now().Add(time.Second))
    	if err != nil {
    		panic(err)
    	}
    	c.Write(data)
    }
    
    type fakePodCache struct {
    	pods map[string]WorkloadInfo
    }
    
    func (f fakePodCache) ReadCurrentPodSnapshot() map[string]WorkloadInfo {
    	return f.pods
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
Back to top