Fix label and name reference in charts
[nonrtric.git] / sample-services / hello-world / hello-world-chart / templates / service.yaml
index d5b9f5d..9fa5e7a 100644 (file)
@@ -2,7 +2,7 @@
 #   ========================LICENSE_START=================================
 #   O-RAN-SC
 #   %%
-#   Copyright (C) 2023: OpenInfra Foundation Europe
+#   Copyright (C) 2023-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.
@@ -21,9 +21,7 @@
 apiVersion: v1
 kind: Service
 metadata:
-  name: {{ include "hello-world-chart.fullname" . }}
-  labels:
-    {{- include "hello-world-chart.labels" . | nindent 4 }}
+  name: hello-world-chart-service
 spec:
   type: {{ .Values.service.type }}
   ports:
@@ -32,5 +30,5 @@ spec:
       protocol: TCP
       name: http
   selector:
-    {{- include "hello-world-chart.selectorLabels" . | nindent 4 }}
+    app: hello-world-chart-container