Skip to content

Commit

Permalink
Reduce deploymentconfig test 3GBi memory size to reasonable
Browse files Browse the repository at this point in the history
  • Loading branch information
ardaguclu committed Apr 2, 2024
1 parent 56867df commit 63b30e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/extended/deployments/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func deploymentInfo(oc *exutil.CLI, name string) (*appsv1.DeploymentConfig, []*c
type deploymentConditionFunc func(dc *appsv1.DeploymentConfig, rcs []*corev1.ReplicationController, pods []corev1.Pod) (bool, error)

func waitForLatestCondition(oc *exutil.CLI, name string, timeout time.Duration, fn deploymentConditionFunc) error {
return wait.PollImmediate(200*time.Millisecond, timeout, func() (bool, error) {
return wait.PollImmediate(500*time.Millisecond, timeout, func() (bool, error) {
dc, rcs, pods, err := deploymentInfo(oc, name)
if err != nil {
return false, err
Expand Down
8 changes: 5 additions & 3 deletions test/extended/testdata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions test/extended/testdata/deployments/tag-images-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ spec:
spec:
terminationGracePeriodSeconds: 1
containers:
- image: image-registry.openshift-image-registry.svc:5000/openshift/tools:latest
- image: "registry.redhat.io/ubi8/ubi:latest"
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c", "sleep 300"]
command:
- sleep
- "300"
name: sample-name
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 100m
memory: 3Gi
memory: 512Mi

0 comments on commit 63b30e0

Please sign in to comment.