Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove resource limit #224

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pkg/ansibletest/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ func Job(
Env: env.MergeEnvs([]corev1.EnvVar{}, envVars),
VolumeMounts: GetVolumeMounts(mountCerts, instance, externalWorkflowCounter),
SecurityContext: &securityContext,
Resources: corev1.ResourceRequirements{
Limits: util.GetResourceLimits(),
},
},
},
Volumes: GetVolumes(
Expand Down
3 changes: 0 additions & 3 deletions pkg/horizontest/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ func Job(
Env: env.MergeEnvs([]corev1.EnvVar{}, envVars),
VolumeMounts: GetVolumeMounts(mountCerts, mountKeys, mountKubeconfig, instance),
SecurityContext: &securityContext,
Resources: corev1.ResourceRequirements{
Limits: util.GetResourceLimits(),
},
},
},
Volumes: GetVolumes(
Expand Down
3 changes: 0 additions & 3 deletions pkg/tempest/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ func Job(
},
},
},
Resources: corev1.ResourceRequirements{
Limits: util.GetResourceLimits(),
},
},
},
Volumes: GetVolumes(
Expand Down
3 changes: 0 additions & 3 deletions pkg/tobiko/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ func Job(
Env: env.MergeEnvs([]corev1.EnvVar{}, envVars),
VolumeMounts: GetVolumeMounts(mountCerts, mountKeys, mountKubeconfig, instance),
SecurityContext: &securityContext,
Resources: corev1.ResourceRequirements{
Limits: util.GetResourceLimits(),
},
},
},
Volumes: GetVolumes(
Expand Down
8 changes: 0 additions & 8 deletions pkg/util/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package util

import (
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
)

func GetSecurityContext(
Expand Down Expand Up @@ -38,10 +37,3 @@ func GetSecurityContext(

return securityContext
}

func GetResourceLimits() corev1.ResourceList {
return corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("2000m"),
corev1.ResourceMemory: resource.MustParse("8Gi"),
}
}
Loading