Skip to content

Commit 564d684

Browse files
committed
fill in some more non-zero defaults
1 parent 2f4aa8a commit 564d684

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/deployment_appwrapper_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2929
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
3030
"k8s.io/apimachinery/pkg/runtime"
31+
"k8s.io/utils/ptr"
3132
"sigs.k8s.io/kueue/apis/kueue/v1beta1"
3233
)
3334

@@ -70,6 +71,7 @@ func runDeploymentAppWrapper(t *testing.T) {
7071
Labels: map[string]string{"app": "inference"},
7172
},
7273
Spec: appsv1.DeploymentSpec{
74+
Replicas: ptr.To(int32(1)),
7375
Selector: &metav1.LabelSelector{
7476
MatchLabels: map[string]string{"app": "inference"},
7577
},
@@ -91,8 +93,11 @@ func runDeploymentAppWrapper(t *testing.T) {
9193
Command: []string{"/bin/sh", "-c", "sleep 600; exit 0"},
9294
},
9395
},
96+
RestartPolicy: corev1.RestartPolicyAlways,
9497
},
9598
},
99+
ProgressDeadlineSeconds: ptr.To(int32(600)),
100+
RevisionHistoryLimit: ptr.To(int32(10)),
96101
},
97102
}
98103

0 commit comments

Comments
 (0)