use MakePodSpec consistently (#125805)

cleaning up some tests after MakePod/MakePodSpec were introduced
This commit is contained in:
Michael Fraenkel
2024-06-30 11:28:36 -06:00
committed by GitHub
parent 93d56511e6
commit cd949bafa4
18 changed files with 129 additions and 130 deletions

View File

@@ -55,8 +55,8 @@ func MakePod(name string, tweaks ...Tweak) *api.Pod {
return pod
}
func MakePodSpec(policy api.RestartPolicy, tweaks ...Tweak) api.PodSpec {
return MakePod("", append([]Tweak{SetRestartPolicy(policy)}, tweaks...)...).Spec
func MakePodSpec(tweaks ...Tweak) api.PodSpec {
return MakePod("", tweaks...).Spec
}
func SetNamespace(ns string) Tweak {