Skip to content

Commit f9f5cd7

Browse files
cvo: Set resource requests on the extract job
We want to be in burstable QoS, and we want to avoid causing warnings if e2e runs detect that we happen to be running when they see we aren't in burstable.
1 parent 98d173e commit f9f5cd7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/cvo/updatepayload.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414

1515
batchv1 "k8s.io/api/batch/v1"
1616
corev1 "k8s.io/api/core/v1"
17+
"k8s.io/apimachinery/pkg/api/resource"
1718
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1819
utilerrors "k8s.io/apimachinery/pkg/util/errors"
1920
randutil "k8s.io/apimachinery/pkg/util/rand"
@@ -170,6 +171,13 @@ func (r *payloadRetriever) fetchUpdatePayloadToDir(ctx context.Context, dir stri
170171
SecurityContext: &corev1.SecurityContext{
171172
Privileged: pointer.BoolPtr(true),
172173
},
174+
Resources: corev1.ResourceRequirements{
175+
Requests: corev1.ResourceList{
176+
corev1.ResourceCPU: resource.MustParse("10m"),
177+
corev1.ResourceMemory: resource.MustParse("50Mi"),
178+
corev1.ResourceEphemeralStorage: resource.MustParse("2Mi"),
179+
},
180+
},
173181
}},
174182
Volumes: []corev1.Volume{{
175183
Name: "payloads",

0 commit comments

Comments
 (0)