Skip to content

Commit

Permalink
cvo: Set resource requests on the extract job
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
smarterclayton committed Dec 9, 2019
1 parent 98d173e commit f9f5cd7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/cvo/updatepayload.go
Expand Up @@ -14,6 +14,7 @@ import (

batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
randutil "k8s.io/apimachinery/pkg/util/rand"
Expand Down Expand Up @@ -170,6 +171,13 @@ func (r *payloadRetriever) fetchUpdatePayloadToDir(ctx context.Context, dir stri
SecurityContext: &corev1.SecurityContext{
Privileged: pointer.BoolPtr(true),
},
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("10m"),
corev1.ResourceMemory: resource.MustParse("50Mi"),
corev1.ResourceEphemeralStorage: resource.MustParse("2Mi"),
},
},
}},
Volumes: []corev1.Volume{{
Name: "payloads",
Expand Down

0 comments on commit f9f5cd7

Please sign in to comment.