mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 01:26:28 +00:00
admission_test.go: remove unused createNamespaceForTest() and createSAForTest() functions.
This commit is contained in:
parent
1d8f1e268f
commit
1a3a2d47c8
@ -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
|
// 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
|
// two different PSPs. Since no values are specified it would be allowed to match any
|
||||||
// psp when defaults are filled in.
|
// psp when defaults are filled in.
|
||||||
|
Loading…
Reference in New Issue
Block a user