Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Hello World SME Invoker Service
[nonrtric.git]
/
sample-services
/
hello-world-sme-invoker
/
hello-world-sme-invoker
/
templates
/
service.yaml
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
a8b1698
..
9d21495
100644
(file)
--- 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
# %%
# ========================LICENSE_START=================================
# O-RAN-SC
# %%
-# Copyright (C) 202
3
: OpenInfra Foundation Europe
+# Copyright (C) 202
4
: 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.
# %%
# 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
#
apiVersion: v1
-kind:
Pod
+kind:
Service
metadata:
metadata:
- name:
"{{ include "hello-world-chart.fullname" . }}-test-connection"
+ name:
{{ include "hello-world-sme-invoker.fullname" . }}
labels:
labels:
- {{- include "hello-world-chart.labels" . | nindent 4 }}
- annotations:
- "helm.sh/hook": test
+ {{- include "hello-world-sme-invoker.labels" . | nindent 4 }}
spec:
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 }}
+