mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #53739 from php-coder/remove_unused_functions_from_admission_test
Automatic merge from submit-queue (batch tested with PRs 54036, 53739). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. admission_test.go: remove unused functions **What this PR does / why we need it**: PR removed unused `createNamespaceForTest()` and `createSAForTest()` functions from `admission_test.go`. **Release note**: ```release-note NONE ``` PTAL @liggitt @pweil- CC @simo5
This commit is contained in:
commit
76a4674bd4
@ -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