Skip to content

Commit 2671e35

Browse files
Merge pull request #276 from smarterclayton/resource
Bug 1781283: Set resource requests on the extract job
2 parents 98d173e + f9f5cd7 commit 2671e35

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)