test: Fix PodGroup CRUD test failing due to missing Workload reference

Remove PodGroupTemplateRef from the PodGroup e2e CRUD test. The
PodGroupWorkloadExists admission plugin (introduced in #137464)
rejects PodGroups that reference a non-existent Workload, causing
the test to fail. The workload reference is not needed to test
basic PodGroup API CRUD operations.
This commit is contained in:
Kevin Hannon
2026-03-19 15:36:38 -04:00
parent 6c87b171ca
commit 3c91eba80c

View File

@@ -83,12 +83,6 @@ var _ = SIGDescribe("Workload", framework.WithFeatureGate(features.GenericWorklo
Namespaced: new(true),
InitialSpec: &schedulingv1alpha2.PodGroup{
Spec: schedulingv1alpha2.PodGroupSpec{
PodGroupTemplateRef: &schedulingv1alpha2.PodGroupTemplateReference{
Workload: &schedulingv1alpha2.WorkloadPodGroupTemplateReference{
PodGroupTemplateName: "pg1",
WorkloadName: "w1",
},
},
SchedulingPolicy: schedulingv1alpha2.PodGroupSchedulingPolicy{
Gang: &schedulingv1alpha2.GangSchedulingPolicy{
MinCount: 5,