Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for if (0.16 sec)

  1. cmd/metrics-v3-system-process.go

    	if io.RChar > 0 {
    		m.Set(processIORCharBytes, float64(io.RChar))
    	}
    
    	if io.ReadBytes > 0 {
    		m.Set(processIOReadBytes, float64(io.ReadBytes))
    	}
    
    	if io.WChar > 0 {
    		m.Set(processIOWCharBytes, float64(io.WChar))
    	}
    
    	if io.WriteBytes > 0 {
    		m.Set(processIOWriteBytes, float64(io.WriteBytes))
    	}
    
    	if io.SyscR > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. helm/minio/templates/service.yaml

        heritage: {{ .Release.Service }}
        monitoring: "true"
      {{- if .Values.service.annotations }}
      annotations: {{- toYaml .Values.service.annotations | nindent 4 }}
      {{- end }}
    spec:
      type: {{ .Values.service.type }}
      {{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
      clusterIP: {{ .Values.service.clusterIP }}
      {{- end }}
    Others
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 10:05:53 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. cni/pkg/util/podutil.go

    	constants.AmbientRedirection,
    ))
    
    // TODO: we should use the upstream istio version of this function.
    // PodRedirectionEnabled determines if a pod should or should not be configured
    // to have traffic redirected thru the node proxy.
    func PodRedirectionEnabled(namespace *corev1.Namespace, pod *corev1.Pod) bool {
    	if !(namespace.GetLabels()[constants.DataplaneMode] == constants.DataplaneModeAmbient ||
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. cni/pkg/ipset/nldeps_linux.go

    func (m *realDeps) clearEntriesWithComment(name, comment string) error {
    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    	for _, entry := range res.Entries {
    		if entry.Comment == comment {
    			err := netlink.IpsetDel(name, &entry)
    			if err != nil {
    				return fmt.Errorf("failed to delete IP %s from ipset %s: %w", entry.IP, name, err)
    			}
    		}
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. helm/minio/templates/console-service.yaml

        heritage: {{ .Release.Service }}
      {{- if .Values.consoleService.annotations }}
      annotations: {{- toYaml .Values.consoleService.annotations | nindent 4 }}
      {{- end }}
    spec:
      type: {{ .Values.consoleService.type }}
      {{- if and (eq .Values.consoleService.type "ClusterIP") .Values.consoleService.clusterIP }}
      clusterIP: {{ .Values.consoleService.clusterIP }}
      {{- end }}
    Others
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 10:05:53 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. cni/pkg/ipset/ipset.go

    		Deps:   deps,
    		Prefix: name,
    	}
    	err = deps.ipsetIPHashCreate(set.V4Name, false)
    	if v6 {
    		set.V6Name = fmt.Sprintf(V6Name, name)
    		v6err := deps.ipsetIPHashCreate(set.V6Name, true)
    		err = errors.Join(err, v6err)
    	}
    	return set, err
    }
    
    func (m *IPSet) DestroySet() error {
    	var err error
    	err = m.Deps.destroySet(m.V4Name)
    
    	if m.V6Name != "" {
    		v6err := m.Deps.destroySet(m.V6Name)
    		err = errors.Join(err, v6err)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. cmd/erasure-metadata_test.go

    			_, ok2 := test.expectedErr.(InsufficientReadQuorum)
    			if ok1 != ok2 {
    				t.Errorf("Expected %s, got %s", test.expectedErr, err)
    			}
    			if test.succmodTimes != nil {
    				if !test.expectedSuccModTime.Equal(fi.SuccessorModTime) {
    					t.Errorf("Expected successor mod time to be %v but got %v", test.expectedSuccModTime, fi.SuccessorModTime)
    				}
    				if test.expectedIsLatest != fi.IsLatest {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/server.go

    	var retErr error
    	err := s.netServer.AddPodToMesh(ctx, pod, podIPs, netNs)
    	if err != nil {
    		log.Errorf("failed to add pod to ztunnel: %v", err)
    		if !errors.Is(err, ErrPartialAdd) {
    			return err
    		}
    		retErr = err
    	}
    
    	log.Debugf("annotating pod %s", pod.Name)
    	if err := util.AnnotateEnrolledPod(s.kubeClient, &pod.ObjectMeta); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables_test.go

    				ext := &dep.DependenciesStub{}
    				iptConfigurator, _ := NewIptablesConfigurator(cfg, ext, EmptyNlDeps())
    				var probeIP *netip.Addr
    				if ipv6 {
    					probeIP = &probeSNATipv6
    				} else {
    					probeIP = &probeSNATipv4
    				}
    				err := iptConfigurator.CreateInpodRules(probeIP)
    				if err != nil {
    					t.Fatal(err)
    				}
    
    				compareToGolden(t, ipv6, tt.name, ext.ExecutedAll)
    			})
    		}
    	}
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. cni/cmd/istio-cni/main.go

    	"istio.io/istio/cni/pkg/plugin"
    	"istio.io/istio/pkg/log"
    	istioversion "istio.io/istio/pkg/version"
    )
    
    func main() {
    	if err := runPlugin(); err != nil {
    		os.Exit(1)
    	}
    }
    
    func runPlugin() error {
    	if err := log.Configure(plugin.GetLoggingOptions("")); err != nil {
    		return err
    	}
    	defer func() {
    		// Log sync will send logs to install-cni container via UDS.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 13:56:46 GMT 2024
    - 1.9K bytes
    - Viewed (0)
Back to top