mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 02:06:23 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user