Skip to content

Commit

Permalink
add gpu resource to ClusterQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChughShilpa authored and openshift-merge-bot[bot] committed Nov 22, 2024
1 parent 6dbb295 commit 8ad8367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/kfto/core/kfto_kueue_sft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestPytorchjobUsingKueueQuota(t *testing.T) {
NamespaceSelector: &metav1.LabelSelector{},
ResourceGroups: []kueuev1beta1.ResourceGroup{
{
CoveredResources: []corev1.ResourceName{corev1.ResourceName("cpu"), corev1.ResourceName("memory")},
CoveredResources: []corev1.ResourceName{corev1.ResourceName("cpu"), corev1.ResourceName("memory"), corev1.ResourceName("nvidia.com/gpu")},
Flavors: []kueuev1beta1.FlavorQuotas{
{
Name: kueuev1beta1.ResourceFlavorReference(resourceFlavor.Name),
Expand All @@ -154,6 +154,10 @@ func TestPytorchjobUsingKueueQuota(t *testing.T) {
Name: corev1.ResourceMemory,
NominalQuota: resource.MustParse("8Gi"),
},
{
Name: corev1.ResourceName("nvidia.com/gpu"),
NominalQuota: resource.MustParse("0"),
},
},
},
},
Expand Down

0 comments on commit 8ad8367

Please sign in to comment.