Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for empty (0.17 sec)

  1. cni/pkg/nodeagent/net.go

    		consErr = append(consErr, err)
    	}
    
    	return errors.Join(consErr...)
    }
    
    func (s *NetServer) buildZtunnelSnapshot(ambientPodUIDs map[types.UID]*corev1.Pod) error {
    	// first add all the pods as empty:
    	for uid := range ambientPodUIDs {
    		s.currentPodSnapshot.Ensure(string(uid))
    	}
    
    	// populate full pod snapshot from cgroups
    	return s.scanProcForPodsAndCache(ambientPodUIDs)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  2. istioctl/pkg/workload/workload_test.go

    			})
    		}
    	}
    }
    
    func TestConvertToMap(t *testing.T) {
    	tests := []struct {
    		name string
    		arg  []string
    		want map[string]string
    	}{
    		{name: "empty", arg: []string{""}, want: map[string]string{"": ""}},
    		{name: "one-valid", arg: []string{"key=value"}, want: map[string]string{"key": "value"}},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/ztunnelserver.go

    	pods  PodNetnsCache
    }
    
    var _ ZtunnelServer = &ztunnelServer{}
    
    func newZtunnelServer(addr string, pods PodNetnsCache) (*ztunnelServer, error) {
    	if addr == "" {
    		return nil, fmt.Errorf("addr cannot be empty")
    	}
    
    	resolvedAddr, err := net.ResolveUnixAddr("unixpacket", addr)
    	if err != nil {
    		return nil, fmt.Errorf("failed to resolve unix addr: %w", err)
    	}
    	// remove potentially existing address
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_test.go

    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Mixed Duplicates",
    			args: args{ports: []string{"1234", "2345", "1234", "2345"}},
    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Empty",
    			args: args{ports: []string{}},
    			want: []string{},
    		},
    		{
    			name: "Non-parseable",
    			args: args{ports: []string{"abcd", "2345", "abcd"}},
    			want: []string{"abcd", "2345"},
    		},
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. istioctl/pkg/kubeinject/kubeinject.go

    				}()
    			}
    			var valuesConfig string
    			var sidecarTemplate inject.RawTemplates
    			var meshConfig *meshconfig.MeshConfig
    			rev := opts.Revision
    			// if the revision is "default", render templates with an empty revision
    			if rev == util.DefaultRevisionName {
    				rev = ""
    			}
    			injectorAddress := centralOpts.Xds
    			index := strings.IndexByte(injectorAddress, ':')
    			if index != -1 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-generate_test.go

    	}
    	baseAssertions := []assertion{
    		{empty, empty, ""},
    		{empty, revLabel, "istiod-canary"},
    		{empty, objEnabled, "istiod"},
    		{empty, objEnabledAndRev, "istiod-canary"},
    		{revLabel, empty, "istiod-canary"},
    		{revLabel, revLabel, "istiod-canary"},
    		{revLabel, objEnabled, "istiod-canary"},
    		{revLabel, objEnabledAndRev, "istiod-canary"},
    		{legacyLabel, empty, "istiod"},
    		{legacyLabel, objEnabled, "istiod"},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  7. cni/pkg/repair/repaircontroller.go

    	// crashlooping init containers that match our criteria
    	for _, container := range pod.Status.InitContainerStatuses {
    		// Skip the container if the InitContainerName is not a match and our
    		// InitContainerName filter is non-empty.
    		if c.cfg.InitContainerName != "" && container.Name != c.cfg.InitContainerName {
    			continue
    		}
    
    		// For safety, check the containers *current* status. If the container
    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)
  8. istioctl/pkg/waypoint/waypoint.go

    	makeGateway := func(forApply bool) (*gateway.Gateway, error) {
    		ns := ctx.NamespaceOrDefault(ctx.Namespace())
    		if ctx.Namespace() == "" && !forApply {
    			ns = ""
    		}
    		// If a user sets the waypoint name to an empty string, set it to the default namespace waypoint name.
    		if waypointName == "" {
    			waypointName = constants.DefaultNamespaceWaypoint
    		} else if waypointName == "none" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  9. cni/pkg/install/cniconfig_test.go

    			fileContents: `
    {
    	"cniVersion": "0.3.1",
    	"name": "istio-cni",
    	"type": "istio-cni"
    }`,
    		},
    		{
    			name:            "empty file",
    			dir:             tempDir,
    			expectedFailure: true,
    			inFilename:      "empty.conf",
    		},
    		{
    			name:            "regular file",
    			dir:             tempDir,
    			expectedFailure: false,
    			inFilename:      "regular.conf",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  10. istioctl/pkg/workload/workload.go

    	}
    	if err = yaml.Unmarshal(f, wg); err != nil {
    		return err
    	}
    	// fill empty structs
    	if wg.Spec.Metadata == nil {
    		wg.Spec.Metadata = &networkingv1alpha3.WorkloadGroup_ObjectMeta{}
    	}
    	if wg.Spec.Template == nil {
    		wg.Spec.Template = &networkingv1alpha3.WorkloadEntry{}
    	}
    	// default service account for an empty field is "default"
    	if wg.Spec.Template.ServiceAccount == "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top