You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errs=multierror.Append(errs, fmt.Errorf("hard limit of rlimit %s should not be less than soft limit", rlimit.Type))
719
719
}
720
720
721
-
ifv.platform=="linux" {
721
+
switchv.platform {
722
+
case"linux":
722
723
for_, val:=rangelinuxRlimits {
723
724
ifval==rlimit.Type {
724
725
return
725
726
}
726
727
}
727
728
errs=multierror.Append(errs, specerror.NewError(specerror.PosixProcRlimitsTypeValueError, fmt.Errorf("rlimit type %q may not be valid", rlimit.Type), v.spec.Version))
728
-
} elseifv.platform=="solaris" {
729
+
case"solaris":
729
730
for_, val:=rangeposixRlimits {
730
731
ifval==rlimit.Type {
731
732
return
732
733
}
733
734
}
734
735
errs=multierror.Append(errs, specerror.NewError(specerror.PosixProcRlimitsTypeValueError, fmt.Errorf("rlimit type %q may not be valid", rlimit.Type), v.spec.Version))
735
-
} else {
736
+
default:
736
737
logrus.Warnf("process.rlimits validation not yet implemented for platform %q", v.platform)
0 commit comments