mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Explicitly enable docker shared-pid for e2e_node
This also renames isSharedPIDNamespaceEnabled() to isSharedPIDNamespaceSupported() to be more accurate.
This commit is contained in:
@@ -43,9 +43,9 @@ func getDockerAPIVersion() (semver.Version, error) {
|
||||
return semver.MustParse(version.APIVersion + ".0"), nil
|
||||
}
|
||||
|
||||
// isSharedPIDNamespaceEnabled returns true if the Docker version is 1.13.1+
|
||||
// isSharedPIDNamespaceSupported returns true if the Docker version is 1.13.1+
|
||||
// (API version 1.26+), and false otherwise.
|
||||
func isSharedPIDNamespaceEnabled() (bool, error) {
|
||||
func isSharedPIDNamespaceSupported() (bool, error) {
|
||||
version, err := getDockerAPIVersion()
|
||||
if err != nil {
|
||||
return false, err
|
||||
|
||||
Reference in New Issue
Block a user