  	rktapi "github.com/coreos/rkt/api/v1alpha"
  	"github.com/golang/mock/gomock"
  	"github.com/stretchr/testify/assert"
-@@ -1996,3 +1997,105 @@ func TestConstructSyslogIdentifier(t *testing.T) {
- 		assert.Equal(t, testCase.identifier, identifier, fmt.Sprintf("Test case #%d", i))
+@@ -2075,3 +2076,53 @@ func TestGetPodSystemdServiceFiles(t *testing.T) {
+ 		}
  	}
  }
 +
-+func TestGetPodSystemdServiceFiles(t *testing.T) {
-+	fs := kubetesting.NewFakeOS()
-+	r := &Runtime{os: fs}
-+
-+	testCases := []struct {
-+		serviceFilesOnDisk []string
-+		expected           []string
-+	}{
-+		{
-+			[]string{"one.service", "two.service", "k8s_513ce947-8f6e-4d27-8c03-99f97b78d680.service", "k8s_184482df-8630-4d41-b84f-302684871758.service", "k8s_f4a244d8-5ec2-4f59-b7dd-c9e130d6e7a3.service", "k8s_f5aad446-5598-488f-93a4-5a27e03e7fcb.service"},
-+			[]string{"k8s_513ce947-8f6e-4d27-8c03-99f97b78d680.service", "k8s_184482df-8630-4d41-b84f-302684871758.service", "k8s_f4a244d8-5ec2-4f59-b7dd-c9e130d6e7a3.service", "k8s_f5aad446-5598-488f-93a4-5a27e03e7fcb.service"},
-+		},
-+		{
-+			[]string{"one.service", "two.service"},
-+			[]string{},
-+		},
-+		{
-+			[]string{"one.service", "k8s_513ce947-8f6e-4d27-8c03-99f97b78d680.service"},
-+			[]string{"k8s_513ce947-8f6e-4d27-8c03-99f97b78d680.service"},
-+		},
-+	}
-+	for i, tt := range testCases {
-+		ctrl := gomock.NewController(t)
-+
-+		fs.ReadDirFn = func(dirname string) ([]os.FileInfo, error) {
-+			serviceFileNames := tt.serviceFilesOnDisk
-+			var fileInfos []os.FileInfo
-+
-+			for _, name := range serviceFileNames {
-+				mockFI := containertesting.NewMockFileInfo(ctrl)
-+				// we need to specify two calls
-+				// first: get all systemd units
-+				// second: filter only the files with a k8s_ prefix
-+				mockFI.EXPECT().Name().Return(name)
-+				mockFI.EXPECT().Name().Return(name)
-+				fileInfos = append(fileInfos, mockFI)
-+			}
-+			return fileInfos, nil
-+		}
-+		serviceFiles, err := r.getPodSystemdServiceFiles()
-+		if err != nil {
-+			t.Errorf("%v", err)
-+		}
-+		for _, f := range serviceFiles {
-+			assert.Contains(t, tt.expected, f.Name(), fmt.Sprintf("Test case #%d", i))
-+
-+		}
-+	}
-+}
-+
 +func TestSetupSystemdCustomFields(t *testing.T) {
-+
 +	testCases := []struct {
 +		unitOpts       []*unit.UnitOption
 +		podAnnotations map[string]string

 	glog.V(4).Infof("rkt: Creating service file %q for pod %q", serviceName, format.Pod(pod))
 	serviceFile, err := r.os.Create(serviceFilePath(serviceName))
diff --git a/pkg/kubelet/rkt/rkt_test.go b/pkg/kubelet/rkt/rkt_test.go
index d38a48c..eded9ed 100644
--- a/pkg/kubelet/rkt/rkt_test.go
+++ b/pkg/kubelet/rkt/rkt_test.go
@@ -28,6 +28,7 @@ import (

From 5c2773cfd39003b458817a6bb6257f4f04ba91f1 Mon Sep 17 00:00:00 2001
From: JulienBalestra <julien.balestra@gmail.com>
Date: Sat, 17 Jun 2017 12:43:15 +0200
Subject: [PATCH] Provide a way to setup the limit NO files for rkt Pods

---
 pkg/kubelet/rkt/rkt.go      | 24 +++++++++++++++++++++
 pkg/kubelet/rkt/rkt_test.go | 51 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/pkg/kubelet/rkt/rkt.go b/pkg/kubelet/rkt/rkt.go
index d16c92d..35f3fc0 100644
--- a/pkg/kubelet/rkt/rkt.go
+++ b/pkg/kubelet/rkt/rkt.go
@@ -95,6 +95,8 @@ const (
 	k8sRktRestartCountAnno           = "rkt.kubernetes.io/restart-count"
 	k8sRktTerminationMessagePathAnno = "rkt.kubernetes.io/termination-message-path"
 
