wilfred-s commented on code in PR #472:
URL: https://github.com/apache/yunikorn-k8shim/pull/472#discussion_r1018569352


##########
test/e2e/admission_controller/admission_controller_suite_test.go:
##########
@@ -58,6 +60,39 @@ var testPod = v1.Pod{
        },
 }
 
+var testDeployment = appsv1.Deployment{
+       Spec: appsv1.DeploymentSpec{
+               Replicas: &replicas,
+               Selector: &metav1.LabelSelector{
+                       MatchLabels: map[string]string{
+                               "app": "sleepjob",
+                       },
+               },
+               Template: v1.PodTemplateSpec{
+                       ObjectMeta: metav1.ObjectMeta{
+                               Labels: map[string]string{
+                                       "app": "sleepjob",
+                               },
+                       },
+                       Spec: v1.PodSpec{
+                               Containers: []v1.Container{
+                                       {
+                                               Name:    "sleepjob",
+                                               Image:   "alpine:latest",
+                                               Command: []string{"sleep", 
"30"},
+                                       },
+                               },
+                       },
+               },

Review Comment:
   This template will come back in a number of places we might want to factor 
this out so we can re-use.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to