Adding configmap and services for e2mgr.
[ric-plt/ric-dep.git] / depRicKubernetesOperator / internal / controller / getIngress.go
index 101a430..a4d224c 100644 (file)
@@ -62,6 +62,33 @@ func GetIngress() []*unstructured.Unstructured {
                        },\r
                },\r
        }\r
-       \r
-       return []*unstructured.Unstructured{ingress1, ingress2}\r
+\r
+       ingress3 := &unstructured.Unstructured{\r
+               Object: map[string]interface{}{\r
+                       "apiVersion": "networking.k8s.io/v1beta1",\r
+                       "kind":       "Ingress",\r
+                       "metadata": map[string]interface{}{\r
+                               "name": "ingress-ricplt-e2mgr",\r
+                       },\r
+                       "spec": map[string]interface{}{\r
+                               "rules": []interface{}{\r
+                                       map[string]interface{}{\r
+                                               "http": map[string]interface{}{\r
+                                                       "paths": []interface{}{\r
+                                                               map[string]interface{}{\r
+                                                                       "backend": map[string]interface{}{\r
+                                                                               "serviceName": "service-ricplt-e2mgr-http",\r
+                                                                               "servicePort": 3800,\r
+                                                                       },\r
+                                                                       "path": "/e2mgr",\r
+                                                               },\r
+                                                       },\r
+                                               },\r
+                                       },\r
+                               },\r
+                       },\r
+               },\r
+       }\r
+\r
+       return []*unstructured.Unstructured{ingress1, ingress2,ingress3}\r
 }
\ No newline at end of file