Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for MustParseGeneric (0.22 sec)

  1. tools/istio-iptables/pkg/dependencies/implementation_test.go

    		},
    		{
    			name: "centos 7",
    			ver:  "iptables v1.4.21",
    
    			want: utilversion.MustParseGeneric("1.4.21"),
    		},
    		{
    			name: "centos 8",
    			ver:  "iptables v1.8.4 (nf_tables)",
    
    			want: utilversion.MustParseGeneric("1.8.4"),
    		},
    		{
    			name: "alpine 3.18",
    			ver:  "iptables v1.8.9 (legacy)",
    
    			want: utilversion.MustParseGeneric("1.8.9"),
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/dependencies/implementation_linux.go

    }
    
    var (
    	// IptablesRestoreLocking is the version where locking and -w is added to iptables-restore
    	IptablesRestoreLocking = utilversion.MustParseGeneric("1.6.2")
    	// IptablesLockfileEnv is the version where XTABLES_LOCKFILE is added to iptables.
    	IptablesLockfileEnv = utilversion.MustParseGeneric("1.8.6")
    )
    
    func shouldUseBinaryForCurrentContext(iptablesBin string) (IptablesVersion, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 20:49:10 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. pkg/kubelet/util/swap/swap_util.go

    		if err != nil {
    			klog.ErrorS(err, "cannot determine kernel version, unable to determine is tmpfs noswap is supported")
    			return false
    		}
    
    		if kernelVersion.AtLeast(version.MustParseGeneric(utilkernel.TmpfsNoswapSupportKernelVersion)) {
    			return true
    		}
    
    		if mountPath == "" {
    			klog.ErrorS(errors.New("mount path is empty, falling back to /tmp"), "")
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 10:07:06 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/upgrade/compute.go

    	// Add a newline in the end of this output to leave some space to the next output section
    	printer.Println()
    
    	return upgrades, nil
    }
    
    func getBranchFromVersion(version string) string {
    	v := versionutil.MustParseGeneric(version)
    	return fmt.Sprintf("%d.%d", v.Major(), v.Minor())
    }
    
    func patchVersionBranchExists(clusterVersion, stableVersion *versionutil.Version) bool {
    	return stableVersion.AtLeast(clusterVersion)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 03:03:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/proxier.go

    	}
    
    	if kernelVersion.LessThan(version.MustParseGeneric(utilkernel.IPVSConnReuseModeMinSupportedKernelVersion)) {
    		logger.Error(nil, "Can't set sysctl, kernel version doesn't satisfy minimum version requirements", "sysctl", sysctlConnReuse, "minimumKernelVersion", utilkernel.IPVSConnReuseModeMinSupportedKernelVersion)
    	} else if kernelVersion.AtLeast(version.MustParseGeneric(utilkernel.IPVSConnReuseModeFixedKernelVersion)) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  6. pkg/apis/admissionregistration/validation/validation_test.go

    	base := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), strictCost)
    	extended, err := base.Extend(environment.VersionedOptions{
    		IntroducedVersion: version.MustParseGeneric("1.999"),
    		EnvOptions:        []cel.EnvOption{library.Test()},
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	if strictCost {
    		strictStatelessCELCompiler = plugincel.NewCompiler(extended)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_pods.go

    			return 0, 0, fmt.Errorf("failed to get kernel version, unable to determine if feature %s can be supported : %w",
    				features.UserNamespacesSupport, err)
    		}
    		if kernelVersion != nil && !kernelVersion.AtLeast(version.MustParseGeneric(utilkernel.UserNamespacesSupportKernelVersion)) {
    			klog.InfoS("WARNING: the kernel version is incompatible with the feature gate, which needs as a minimum kernel version",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top