X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=depRicKubernetesOperator%2Finternal%2Fcontroller%2FgetIngress.go;h=a03a85c1a17c571166d712026662d0a3a79f1cf7;hb=refs%2Fchanges%2F59%2F12159%2F2;hp=d44c55354cc144d78fea9d0093de7d3fc1b3e8f3;hpb=7a2312581b59aed5a22c2cfc2405aba68536acb4;p=ric-plt%2Fric-dep.git diff --git a/depRicKubernetesOperator/internal/controller/getIngress.go b/depRicKubernetesOperator/internal/controller/getIngress.go index d44c553..a03a85c 100644 --- a/depRicKubernetesOperator/internal/controller/getIngress.go +++ b/depRicKubernetesOperator/internal/controller/getIngress.go @@ -35,4 +35,142 @@ func GetIngress() []*unstructured.Unstructured { }, }, }, - } \ No newline at end of file + } + + ingress2 := &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "networking.k8s.io/v1beta1", + "kind": "Ingress", + "metadata": map[string]interface{}{ + "name": "ingress-ricplt-appmgr", + }, + "spec": map[string]interface{}{ + "rules": []interface{}{ + map[string]interface{}{ + "http": map[string]interface{}{ + "paths": []interface{}{ + map[string]interface{}{ + "backend": map[string]interface{}{ + "serviceName": "service-ricplt-appmgr-http", + "servicePort": 8080, + }, + "path": "/appmgr", + }, + }, + }, + }, + }, + }, + }, + } + + ingress3 := &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "networking.k8s.io/v1beta1", + "kind": "Ingress", + "metadata": map[string]interface{}{ + "name": "ingress-ricplt-e2mgr", + }, + "spec": map[string]interface{}{ + "rules": []interface{}{ + map[string]interface{}{ + "http": map[string]interface{}{ + "paths": []interface{}{ + map[string]interface{}{ + "backend": map[string]interface{}{ + "serviceName": "service-ricplt-e2mgr-http", + "servicePort": 3800, + }, + "path": "/e2mgr", + }, + }, + }, + }, + }, + }, + }, + } + + ingress4 := &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "networking.k8s.io/v1beta1", + "kind": "Ingress", + "metadata": map[string]interface{}{ + "name": "ingress-ricplt-rsm", + }, + "spec": map[string]interface{}{ + "rules": []interface{}{ + map[string]interface{}{ + "http": map[string]interface{}{ + "paths": []interface{}{ + map[string]interface{}{ + "backend": map[string]interface{}{ + "serviceName": "service-ricplt-rsm-http", + "servicePort": 4800, + }, + "path": "/rsm", + }, + }, + }, + }, + }, + }, + }, + } + + ingress5 := &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "networking.k8s.io/v1beta1", + "kind": "Ingress", + "metadata": map[string]interface{}{ + "name": "ingress-ricplt-xapp-onboarder-chartmuseum", + }, + "spec": map[string]interface{}{ + "rules": []interface{}{ + map[string]interface{}{ + "http": map[string]interface{}{ + "paths": []interface{}{ + map[string]interface{}{ + "path": "/helmrepo", + "backend": map[string]interface{}{ + "serviceName": "service-ricplt-xapp-onboarder-http", + "servicePort": 8080, + }, + }, + }, + }, + }, + }, + }, + }, + } + + ingress6 := &unstructured.Unstructured{ + Object: map[string]interface{}{ + "metadata": map[string]interface{}{ + "name": "ingress-ricplt-xapp-onboarder-server", + }, + "spec": map[string]interface{}{ + "rules": []interface{}{ + map[string]interface{}{ + "http": map[string]interface{}{ + "paths": []interface{}{ + map[string]interface{}{ + "backend": map[string]interface{}{ + "serviceName": "service-ricplt-xapp-onboarder-http", + "servicePort": 8888, + }, + "path": "/onboard", + }, + }, + }, + }, + }, + }, + "apiVersion": "networking.k8s.io/v1beta1", + "kind": "Ingress", + }, + } + + return []*unstructured.Unstructured{ingress1, ingress2, ingress3, ingress4, ingress5, ingress6} +} \ No newline at end of file