Skip to content

Commit

Permalink
[test][int][kubeflow] Cleanup resource flavors (kubernetes-sigs#3178)
Browse files Browse the repository at this point in the history
  • Loading branch information
trasc authored Oct 2, 2024
1 parent 1247fa3 commit 1b0c05c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/controller/jobs/kubeflow/kubeflowjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ func ShouldReconcileJob(ctx context.Context, k8sClient client.Client, job, creat
gomega.Expect(k8sClient.Create(ctx, onDemandFlavor)).Should(gomega.Succeed())
spotFlavor := testing.MakeResourceFlavor("spot").NodeLabel(instanceKey, "spot").Obj()
gomega.Expect(k8sClient.Create(ctx, spotFlavor)).Should(gomega.Succeed())
defer func() {
util.ExpectObjectToBeDeleted(ctx, k8sClient, onDemandFlavor, true)
util.ExpectObjectToBeDeleted(ctx, k8sClient, spotFlavor, true)
}()
clusterQueue := testing.MakeClusterQueue("cluster-queue").
ResourceGroup(
*testing.MakeFlavorQuotas("on-demand").Resource(corev1.ResourceCPU, "5").Obj(),
Expand Down

0 comments on commit 1b0c05c

Please sign in to comment.