mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Update: podTemplateList name; Fix: initial fetching of PodTemplates
This commit is contained in:
parent
fe91d5fad9
commit
3ba8f42f96
@ -36,7 +36,9 @@ var _ = ginkgo.Describe("[sig-architecture] PodTemplates", func() {
|
||||
podTemplateName := "nginx-pod-template-" + string(uuid.NewUUID())
|
||||
|
||||
// get a list of PodTemplates (in all namespaces to hit endpoint)
|
||||
podTemplateList, err := f.ClientSet.CoreV1().PodTemplates("").List(metav1.ListOptions{})
|
||||
podTemplateList, err := f.ClientSet.CoreV1().PodTemplates("").List(metav1.ListOptions{
|
||||
LabelSelector: "podtemplate-static=true",
|
||||
})
|
||||
framework.ExpectNoError(err, "failed to list all PodTemplates")
|
||||
framework.ExpectEqual(len(podTemplateList.Items), 0, "unable to find templates")
|
||||
|
||||
@ -85,10 +87,10 @@ var _ = ginkgo.Describe("[sig-architecture] PodTemplates", func() {
|
||||
framework.ExpectNoError(err, "failed to delete PodTemplate")
|
||||
|
||||
// list the PodTemplates
|
||||
podTemplateListWithLabel, err := f.ClientSet.CoreV1().PodTemplates("").List(metav1.ListOptions{
|
||||
podTemplateList, err = f.ClientSet.CoreV1().PodTemplates("").List(metav1.ListOptions{
|
||||
LabelSelector: "podtemplate-static=true",
|
||||
})
|
||||
framework.ExpectNoError(err, "failed to list PodTemplate")
|
||||
framework.ExpectEqual(len(podTemplateListWithLabel.Items), 0, "PodTemplate list returned items, failed to delete PodTemplate")
|
||||
framework.ExpectEqual(len(podTemplateList.Items), 0, "PodTemplate list returned items, failed to delete PodTemplate")
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user