X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=sample-services%2Fhello-world-sme-invoker%2Fhello-world-sme-invoker%2Ftemplates%2Fservice.yaml;fp=test%2Fservicestub%2Fhello-world-chart%2Ftemplates%2Ftests%2Ftest-connection.yaml;h=9d21495351b3efabf70c49e97429213009d9faca;hb=dafdbe531634823882261f2ce8c9cf334b579b52;hp=a8b1698f668e0271fc396f5e7944b25a25d96ddf;hpb=53ebb953e0e18e695fd0e807c2f1282ef54ceeee;p=nonrtric.git diff --git a/test/servicestub/hello-world-chart/templates/tests/test-connection.yaml b/sample-services/hello-world-sme-invoker/hello-world-sme-invoker/templates/service.yaml similarity index 65% rename from test/servicestub/hello-world-chart/templates/tests/test-connection.yaml rename to sample-services/hello-world-sme-invoker/hello-world-sme-invoker/templates/service.yaml index a8b1698f..9d214953 100644 --- a/test/servicestub/hello-world-chart/templates/tests/test-connection.yaml +++ b/sample-services/hello-world-sme-invoker/hello-world-sme-invoker/templates/service.yaml @@ -2,7 +2,7 @@ # ========================LICENSE_START================================= # O-RAN-SC # %% -# Copyright (C) 2023: OpenInfra Foundation Europe +# Copyright (C) 2024: OpenInfra Foundation Europe # %% # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,17 +19,18 @@ # apiVersion: v1 -kind: Pod +kind: Service metadata: - name: "{{ include "hello-world-chart.fullname" . }}-test-connection" + name: {{ include "hello-world-sme-invoker.fullname" . }} labels: - {{- include "hello-world-chart.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test + {{- include "hello-world-sme-invoker.labels" . | nindent 4 }} spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "hello-world-chart.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "hello-world-sme-invoker.selectorLabels" . | nindent 4 }} +