X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=depRicKubernetesOperator%2Finternal%2Fcontroller%2FgetServices.go;h=915463da43d784d81ae1584e15695fd26e0aac4b;hb=ce6293ff672ac82e72eda9dc38bb7ff90f06cab7;hp=8fc40049e0f1e0bbaaf16919637fac88be303363;hpb=10624f49d530ee7921e8cf35e4b4486a328c7424;p=ric-plt%2Fric-dep.git diff --git a/depRicKubernetesOperator/internal/controller/getServices.go b/depRicKubernetesOperator/internal/controller/getServices.go index 8fc4004..915463d 100644 --- a/depRicKubernetesOperator/internal/controller/getServices.go +++ b/depRicKubernetesOperator/internal/controller/getServices.go @@ -255,5 +255,89 @@ func GetService() []*corev1.Service { }, } - return []*corev1.Service{service1, service2, service3, service4,service5,service6 } + + service8 := &corev1.Service{ + ObjectMeta: metav1.ObjectMeta{ + Labels: map[string]string{ + "app": "ricplt-e2mgr", + "chart": "e2mgr-3.0.0", + "heritage": "Helm", + "release": "release-name", + }, + Name: "service-ricplt-e2mgr-http", + Namespace: "ricplt", + }, + Spec: corev1.ServiceSpec{ + Ports: []corev1.ServicePort{ + + corev1.ServicePort{ + TargetPort: intstr.IntOrString{ + StrVal: "http", + Type: intstr.Type(1), + }, + Name: "http", + Port: 3800, + Protocol: corev1.Protocol("TCP"), + }, + }, + PublishNotReadyAddresses: false, + Selector: map[string]string{ + "app": "ricplt-e2mgr", + "release": "release-name", + }, + Type: corev1.ServiceType("ClusterIP"), + }, + TypeMeta: metav1.TypeMeta{ + Kind: "Service", + APIVersion: "v1", + }, + } + + service9 := &corev1.Service{ + TypeMeta: metav1.TypeMeta{ + APIVersion: "v1", + Kind: "Service", + }, + ObjectMeta: metav1.ObjectMeta{ + Labels: map[string]string{ + "app": "ricplt-e2mgr", + "chart": "e2mgr-3.0.0", + "heritage": "Helm", + "release": "release-name", + }, + Name: "service-ricplt-e2mgr-rmr", + Namespace: "ricplt", + }, + Spec: corev1.ServiceSpec{ + Selector: map[string]string{ + "app": "ricplt-e2mgr", + "release": "release-name", + }, + Type: corev1.ServiceType("ClusterIP"), + Ports: []corev1.ServicePort{ + + corev1.ServicePort{ + Protocol: corev1.Protocol("TCP"), + TargetPort: intstr.IntOrString{ + StrVal: "rmrroute", + Type: intstr.Type(1), + }, + Name: "rmrroute", + Port: 4561, + }, + corev1.ServicePort{ + Name: "rmrdata", + Port: 3801, + Protocol: corev1.Protocol("TCP"), + TargetPort: intstr.IntOrString{ + StrVal: "rmrdata", + Type: intstr.Type(1), + }, + }, + }, + PublishNotReadyAddresses: false, + }, + } + + return []*corev1.Service{service1, service2, service3, service4,service5,service6,service8,service9 } }