- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for MustParseGeneric (0.2 sec)
-
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) -
pkg/kubelet/sysctl/safe_sysctls.go
for _, sc := range safeSysctls { if sc.kernel == "" { safeSysctlAllowlist = append(safeSysctlAllowlist, sc.name) continue } if kernelVersion != nil && kernelVersion.AtLeast(version.MustParseGeneric(sc.kernel)) { safeSysctlAllowlist = append(safeSysctlAllowlist, sc.name) } else { klog.InfoS("kernel version is too old, dropping the sysctl from safe sysctl list", "kernelVersion", kernelVersion, "sysctl", sc.name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 19:24:34 UTC 2023 - 2.8K bytes - Viewed (0) -
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) -
pkg/util/iptables/iptables.go
// WaitIntervalMinVersion a minimum iptables versions supporting the wait interval useconds var WaitIntervalMinVersion = utilversion.MustParseGeneric("1.6.1") // WaitSecondsMinVersion a minimum iptables versions supporting the wait seconds var WaitSecondsMinVersion = utilversion.MustParseGeneric("1.4.22") // WaitRestoreMinVersion a minimum iptables versions supporting the wait restore seconds
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 28.6K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/util/version/version.go
// ignored, and the version can be preceded by the letter "v". See also ParseSemantic. func ParseGeneric(str string) (*Version, error) { return parse(str, false) } // MustParseGeneric is like ParseGeneric except that it panics on error func MustParseGeneric(str string) *Version { v, err := ParseGeneric(str) if err != nil { panic(err) } return v }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 18 19:25:29 UTC 2023 - 10.5K bytes - Viewed (0) -
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) -
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) -
pkg/util/iptables/iptables_test.go
{"2.0.0", []string{WaitString, WaitSecondsValue, WaitIntervalString, WaitIntervalUsecondsValue}}, } for _, testCase := range testCases { result := getIPTablesWaitFlag(utilversion.MustParseGeneric(testCase.Version)) if !reflect.DeepEqual(result, testCase.Result) { t.Errorf("For %s expected %v got %v", testCase.Version, testCase.Result, result) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 46.3K bytes - Viewed (0) -
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)