@@ -19,15 +19,13 @@ package e2e
19
19
import (
20
20
"testing"
21
21
22
- "github.com/onsi/gomega"
23
22
. "github.com/onsi/gomega"
24
23
. "github.com/project-codeflare/codeflare-common/support"
25
24
mcadv1beta1 "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/apis/controller/v1beta1"
26
25
rayv1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1"
27
26
28
27
batchv1 "k8s.io/api/batch/v1"
29
28
corev1 "k8s.io/api/core/v1"
30
- networkingv1 "k8s.io/api/networking/v1"
31
29
rbacv1 "k8s.io/api/rbac/v1"
32
30
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
33
31
)
@@ -98,43 +96,6 @@ func TestMNISTRayClusterSDK(t *testing.T) {
98
96
clusterRole := CreateClusterRole (test , clusterPolicyRules )
99
97
CreateClusterRoleBinding (test , sa , clusterRole )
100
98
101
- ingress := & networkingv1.Ingress {
102
- ObjectMeta : metav1.ObjectMeta {
103
- Name : "ray-ingress" ,
104
- Namespace : namespace .Name ,
105
- },
106
- Spec : networkingv1.IngressSpec {
107
- Rules : []networkingv1.IngressRule {
108
- {
109
- Host : "ray-dashboard-mnist-test.com" ,
110
- IngressRuleValue : networkingv1.IngressRuleValue {
111
- HTTP : & networkingv1.HTTPIngressRuleValue {
112
- Paths : []networkingv1.HTTPIngressPath {
113
- {
114
- PathType : func (s networkingv1.PathType ) * networkingv1.PathType { return & s }(networkingv1 .PathTypePrefix ),
115
- Path : "/" ,
116
- Backend : networkingv1.IngressBackend {
117
- Service : & networkingv1.IngressServiceBackend {
118
- Name : "raycluster-head-svc" ,
119
- Port : networkingv1.ServiceBackendPort {
120
- Number : 80 ,
121
- },
122
- },
123
- },
124
- },
125
- },
126
- },
127
- },
128
- },
129
- },
130
- },
131
- }
132
-
133
- // Create the Ingress
134
- createdIngress , err := test .Client ().Core ().NetworkingV1 ().Ingresses (namespace .Name ).Create (test .Ctx (), ingress , metav1.CreateOptions {})
135
- test .Expect (err ).NotTo (gomega .HaveOccurred ())
136
- test .T ().Logf ("Created Ingress %s/%s successfully" , createdIngress .Namespace , createdIngress .Name )
137
-
138
99
job := & batchv1.Job {
139
100
TypeMeta : metav1.TypeMeta {
140
101
APIVersion : batchv1 .SchemeGroupVersion .String (),
0 commit comments