From 1a3a2d47c820f481a783228c11008c2481f475e9 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Wed, 11 Oct 2017 19:02:15 +0200 Subject: [PATCH] admission_test.go: remove unused createNamespaceForTest() and createSAForTest() functions. --- .../podsecuritypolicy/admission_test.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/plugin/pkg/admission/security/podsecuritypolicy/admission_test.go b/plugin/pkg/admission/security/podsecuritypolicy/admission_test.go index c43c7fb29f8..c1dcf9e3fe5 100644 --- a/plugin/pkg/admission/security/podsecuritypolicy/admission_test.go +++ b/plugin/pkg/admission/security/podsecuritypolicy/admission_test.go @@ -2057,23 +2057,6 @@ func permissivePSP() *extensions.PodSecurityPolicy { } } -func createNamespaceForTest() *kapi.Namespace { - return &kapi.Namespace{ - ObjectMeta: metav1.ObjectMeta{ - Name: "default", - }, - } -} - -func createSAForTest() *kapi.ServiceAccount { - return &kapi.ServiceAccount{ - ObjectMeta: metav1.ObjectMeta{ - Namespace: "default", - Name: "default", - }, - } -} - // goodPod is empty and should not be used directly for testing since we're providing // two different PSPs. Since no values are specified it would be allowed to match any // psp when defaults are filled in.