Fix label and name reference in charts 28/12628/2
authoraravind.est <aravindhan.a@est.tech>
Thu, 28 Mar 2024 09:38:29 +0000 (09:38 +0000)
committeraravind.est <aravindhan.a@est.tech>
Thu, 28 Mar 2024 14:31:10 +0000 (14:31 +0000)
Label and full name hard-coded as this chart is standalone.

Issue-ID: NONRTRIC-965
Change-Id: I173cf2e4e2658aa37126336e356282ccf6faebc0
Signed-off-by: aravind.est <aravindhan.a@est.tech>
sample-services/hello-world-sme-invoker/hello-world-sme-invoker/templates/deployment.yaml
sample-services/hello-world-sme-invoker/hello-world-sme-invoker/templates/service.yaml
sample-services/hello-world-sme-invoker/hello-world-sme-invoker/values.yaml
sample-services/hello-world/hello-world-chart/templates/deployment.yaml
sample-services/hello-world/hello-world-chart/templates/service.yaml
sample-services/hello-world/hello-world-chart/values.yaml

index 9a31fba..bbf621a 100644 (file)
 apiVersion: apps/v1
 kind: Deployment
 metadata:
-  name: {{ include "hello-world-sme-invoker.fullname" . }}
-  labels:
-    {{- include "hello-world-sme-invoker.labels" . | nindent 4 }}
+  name: hello-world-sme-invoker-deployment
 spec:
   replicas: {{ .Values.replicaCount }}
   selector:
     matchLabels:
-      {{- include "hello-world-sme-invoker.selectorLabels" . | nindent 8 }}
+      app: hello-world-sme-invoker-container
   template:
     metadata:
       labels:
-        {{- include "hello-world-sme-invoker.selectorLabels" . | nindent 12 }}
+        app: hello-world-sme-invoker-container
     spec:
       containers:
         - name: {{ .Chart.Name }}
index 9d21495..ffd039a 100644 (file)
@@ -21,9 +21,7 @@
 apiVersion: v1
 kind: Service
 metadata:
-  name: {{ include "hello-world-sme-invoker.fullname" . }}
-  labels:
-    {{- include "hello-world-sme-invoker.labels" . | nindent 4 }}
+  name: hello-world-sme-invoker-service
 spec:
   type: {{ .Values.service.type }}
   ports:
@@ -32,5 +30,5 @@ spec:
       protocol: TCP
       name: http
   selector:
-    {{- include "hello-world-sme-invoker.selectorLabels" . | nindent 4 }}
+    app: hello-world-sme-invoker-container
 
index 16957ca..94c3b4f 100644 (file)
@@ -21,7 +21,7 @@
 image:
   # use a released image (and port number) if one is available, or use a local/staging image in a development environment
   repository: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-sample-helloworld-sme-invoker
-  tag: latest
+  tag: 0.1.0
 
 service:
   name: hello-world-sme-invoker
index 57f5357..8b408ec 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.
 apiVersion: apps/v1
 kind: Deployment
 metadata:
-  name: {{ include "hello-world-chart.fullname" . }}
-  labels:
-    {{- include "hello-world-chart.labels" . | nindent 4 }}
+  name: hello-world-chart-deployment
 spec:
   replicas: {{ .Values.replicaCount }}
   selector:
     matchLabels:
-      {{- include "hello-world-chart.selectorLabels" . | nindent 8 }}
+      app: hello-world-chart-container
   template:
     metadata:
       labels:
-        {{- include "hello-world-chart.selectorLabels" . | nindent 12 }}
+        app: hello-world-chart-container
     spec:
       containers:
         - name: {{ .Chart.Name }}
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
 
index d9aba22..3feff4c 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,7 +21,7 @@
 image:
   # use a released image (and port number) if one is available, or use a local/staging image in a development environment.
   repository: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-sample-helloworld
-  tag: latest
+  tag: 0.1.0
 
 service:
   name: hello-world